mirror of
https://github.com/libevent/libevent.git
synced 2025-01-09 00:56:20 +08:00
a bug in the regression test of event_reinit caused epoll to fail
svn:r560
This commit is contained in:
parent
ef085e84c6
commit
eeb5e4cd88
@ -473,7 +473,10 @@ test_fork(void)
|
|||||||
|
|
||||||
event_dispatch();
|
event_dispatch();
|
||||||
|
|
||||||
exit(test_ok == 0);
|
/* we do not send an EOF; simple_read_cb requires an EOF
|
||||||
|
* to set test_ok. we just verify that the callback was
|
||||||
|
* called. */
|
||||||
|
exit(test_ok != 0 || called != 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* wait for the child to read the data */
|
/* wait for the child to read the data */
|
||||||
@ -487,7 +490,7 @@ test_fork(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (WEXITSTATUS(status) != 0) {
|
if (WEXITSTATUS(status) != 0) {
|
||||||
fprintf(stderr, "FAILED\n");
|
fprintf(stderr, "FAILED (exit)\n");
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user