diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2003-11-20 18:25:36 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2003-11-20 18:25:36 +0000 |
commit | d26c0ff9554051ee66af04254d6fc56ca7373f7d (patch) | |
tree | 85e2ae1d77b8695625b64346c5b081cd5bd84a88 /winsup/testsuite/winsup.api/semtest.c | |
parent | bd0e35213d635df40a1c6f8b2c91710bc67c6a3e (diff) | |
download | cygnal-d26c0ff9554051ee66af04254d6fc56ca7373f7d.tar.gz cygnal-d26c0ff9554051ee66af04254d6fc56ca7373f7d.tar.bz2 cygnal-d26c0ff9554051ee66af04254d6fc56ca7373f7d.zip |
* winsup.api/msgtest.c (main): Revert to use the SIGSYS signal handler.
* winsup.api/semtest.c (main): Ditto.
* winsup.api/shmtest.c (main): Ditto.
Diffstat (limited to 'winsup/testsuite/winsup.api/semtest.c')
-rw-r--r-- | winsup/testsuite/winsup.api/semtest.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/winsup/testsuite/winsup.api/semtest.c b/winsup/testsuite/winsup.api/semtest.c index 7f1f75e7a..dfb8c08eb 100644 --- a/winsup/testsuite/winsup.api/semtest.c +++ b/winsup/testsuite/winsup.api/semtest.c @@ -104,7 +104,6 @@ main(int argc, char *argv[]) Tst_count = 0; -#if 0 /* * Install a SIGSYS handler so that we can exit gracefully if * System V Semaphore support isn't in the kernel. @@ -113,8 +112,7 @@ main(int argc, char *argv[]) sigemptyset(&sa.sa_mask); sa.sa_flags = 0; if (sigaction(SIGSYS, &sa, NULL) == -1) - err(1, "sigaction SIGSYS"); -#endif + tst_brkm (TBROK, cleanup, "sigaction SIGSYS"); /* * Install and SIGCHLD handler to deal with all possible exit @@ -137,9 +135,6 @@ main(int argc, char *argv[]) child_pid = getpid(); sender_semid = semget(semkey, 1, IPC_CREAT | 0640); - if (sender_semid == -1 && errno == ENOSYS) - tst_brkm (TRETR, cleanup, - "System V Semaphore support is not present in the kernel"); tst_resm (sender_semid == -1 ? TFAIL : TPASS, "sender calls semget"); sun.buf = &s_ds; |