add explicit check for linux

This commit is contained in:
Kirill Rodriguez 2024-10-20 21:47:17 +01:00
parent c923a184c6
commit ae635d4b5b
No known key found for this signature in database
GPG Key ID: 2AA85EC2AD7F85EA

View File

@ -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);