mirror of
https://github.com/libevent/libevent.git
synced 2025-01-09 00:56:20 +08:00
add explicit check for linux
This commit is contained in:
parent
c923a184c6
commit
ae635d4b5b
@ -1685,8 +1685,10 @@ test_bufferevent_connect_hostname(void *arg)
|
||||
*/
|
||||
if (!emfile) {
|
||||
tt_int_op(be_outcome[3].dnserr, ==, 0);
|
||||
#if defined(__linux__)
|
||||
} else {
|
||||
tt_int_op(be_outcome[3].dnserr, !=, 0);
|
||||
#endif
|
||||
}
|
||||
if (expect_err) {
|
||||
tt_int_op(be_outcome[4].what, ==, BEV_EVENT_ERROR);
|
||||
|
Loading…
x
Reference in New Issue
Block a user