diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2008-05-02 06:09:12 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2008-05-02 06:09:12 +0000 |
commit | aca1b177e06cca0f06297751ac178ab96e04ae4f (patch) | |
tree | 40ed096e545ca29b466eb9e383e5d548f4a090ff /regress | |
parent | 0a4d9575993ffee6da26d8e1d2569a946fce5f41 (diff) |
Update to libevent 1.3e while retaining our local changes.
"No objection" millert@
"the diff looks and works fine" reyk@
Diffstat (limited to 'regress')
-rw-r--r-- | regress/lib/libevent/eventtest.c | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/regress/lib/libevent/eventtest.c b/regress/lib/libevent/eventtest.c index 862c2734e7d..9baa324a269 100644 --- a/regress/lib/libevent/eventtest.c +++ b/regress/lib/libevent/eventtest.c @@ -1,4 +1,4 @@ -/* $OpenBSD: eventtest.c,v 1.10 2007/09/19 02:06:45 todd Exp $ */ +/* $OpenBSD: eventtest.c,v 1.11 2008/05/02 06:09:11 brad Exp $ */ /* $NetBSD: eventtest.c,v 1.3 2004/08/07 21:09:47 provos Exp $ */ /* @@ -430,6 +430,20 @@ test_simplesignal(void) } void +test_immediatesignal(void) +{ + struct event ev; + + printf("Immediate signal: "); + signal_set(&ev, SIGUSR1, signal_cb, &ev); + signal_add(&ev, NULL); + raise(SIGUSR1); + event_loop(EVLOOP_NONBLOCK); + signal_del(&ev); + cleanup_test(); +} + +void test_loopexit(void) { struct timeval tv, tv_start, tv_end; @@ -701,6 +715,8 @@ main (int argc, char **argv) test_simplesignal(); + test_immediatesignal(); + test_loopexit(); test_evbuffer(); |