]> git.lizzy.rs Git - rust.git/commitdiff
rollup merge of #22440: semarie/openbsd-connect_error
authorAlex Crichton <alex@alexcrichton.com>
Tue, 17 Feb 2015 23:14:52 +0000 (15:14 -0800)
committerAlex Crichton <alex@alexcrichton.com>
Wed, 18 Feb 2015 01:26:44 +0000 (17:26 -0800)
The `connect_error` test check if connecting to "0.0.0.0:1" works (it
shouldn't). And in case of error, the test expects a `ConnectionRefused`
error.

Under OpenBSD, trying to connect to "0.0.0.0" isn't a `ConnectionRefused`:
it is an `InvalidInput` error.

The patch allow the error to be `ConnectionRefused` or `InvalidInput`.

Another possibility is to check connecting to "127.0.0.1:1" and expects only `ConnectionRefused` error.


Trivial merge