diff options
author | Nick Mathewson <nickm@torproject.org> | 2010-09-08 13:29:06 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2010-09-08 13:29:06 -0400 |
commit | ce85280beb56c4b1c7e69c542878a8f1fe647f28 (patch) | |
tree | 330c58bd582dad190a1c4637d028d0d58741ebfe /test/regress.c | |
parent | 4632b78e01a312ae716bc17322c462be53182eca (diff) | |
download | libevent-ce85280beb56c4b1c7e69c542878a8f1fe647f28.tar.gz |
Improve testing of when thread-notification occurs
Diffstat (limited to 'test/regress.c')
-rw-r--r-- | test/regress.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/regress.c b/test/regress.c index 8ce68e77..a36f6d51 100644 --- a/test/regress.c +++ b/test/regress.c @@ -62,6 +62,7 @@ #include "event2/buffer_compat.h" #include "event2/util.h" #include "event-internal.h" +#include "evthread-internal.h" #include "util-internal.h" #include "log-internal.h" @@ -805,6 +806,9 @@ test_fork(void) setup_test("After fork: "); + tt_assert(current_base); + evthread_make_base_notifiable(current_base); + write(pair[0], TEST1, strlen(TEST1)+1); event_set(&ev, pair[1], EV_READ, simple_read_cb, &ev); @@ -863,6 +867,7 @@ test_fork(void) evsignal_del(&sig_ev); + end: cleanup_test(); } |