diff options
author | 2014-11-16 05:08:48 +0000 | |
---|---|---|
committer | 2014-11-16 05:08:48 +0000 | |
commit | f722c519d93e3d2f9b600becbb658864b255642d (patch) | |
tree | 34b4ac8d1a9834e2dac0bb7c8ea937f1a22aa7da | |
parent | Remove a bogotified comment (diff) | |
download | wireguard-openbsd-f722c519d93e3d2f9b600becbb658864b255642d.tar.xz wireguard-openbsd-f722c519d93e3d2f9b600becbb658864b255642d.zip |
Delete a test which required behavior not defined by the spec
(behavior of sigwait() when signal not blocked in all threads)
-rw-r--r-- | regress/lib/libpthread/sigwait/sigwait.c | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/regress/lib/libpthread/sigwait/sigwait.c b/regress/lib/libpthread/sigwait/sigwait.c index 27ec77eb623..195fa12ebf9 100644 --- a/regress/lib/libpthread/sigwait/sigwait.c +++ b/regress/lib/libpthread/sigwait/sigwait.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sigwait.c,v 1.5 2012/02/20 02:07:41 guenther Exp $ */ +/* $OpenBSD: sigwait.c,v 1.6 2014/11/16 05:08:48 guenther Exp $ */ /* * Copyright (c) 1998 Daniel M. Eischen <eischen@vigrid.com> * All rights reserved. @@ -226,23 +226,10 @@ int main (int argc, char *argv[]) /* Release the waiter from sigwait. */ CHECKe(kill(getpid(), SIGHUP)); sleep (1); - /* signal handler should wake up for SIGHUP */ + /* signal waiter should wake up for SIGHUP */ ASSERT(sigcounts[SIGHUP] == 1); - /* - * Add SIGHUP to all threads pending signals. Since there is - * a signal handler installed for SIGHUP and this signal is - * blocked from the waiter thread and unblocked in the main - * thread, the signal handler should be called once for SIGHUP. - */ - CHECKe(kill(getpid(), SIGHUP)); /* Release the waiter thread and allow him to run. */ CHECKr(pthread_mutex_unlock (&waiter_mutex)); - sleep (1); - /* - * sigwait should NOT return for pending SIGHUP. Nothing is pending - * because the signal was processed by the SIGHUP signal handler. - */ - ASSERT(sigcounts[SIGHUP] == 2); /* * Repeat the above test using pthread_kill and SIGUSR1 |