summaryrefslogtreecommitdiffstats
path: root/lib/libc_r/test/sigsuspend/sigsuspend.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc_r/test/sigsuspend/sigsuspend.c')
-rw-r--r--lib/libc_r/test/sigsuspend/sigsuspend.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc_r/test/sigsuspend/sigsuspend.c b/lib/libc_r/test/sigsuspend/sigsuspend.c
index 7921e8a..153c6e0 100644
--- a/lib/libc_r/test/sigsuspend/sigsuspend.c
+++ b/lib/libc_r/test/sigsuspend/sigsuspend.c
@@ -111,7 +111,7 @@ sighandler (int signo)
printf (" -> Suspender thread signal handler caught signal %d\n",
signo);
sigprocmask (SIG_SETMASK, NULL, &set);
- if (set != suspender_mask)
+ if (memcmp(&set, &suspender_mask, sizeof(set)))
printf (" >>> FAIL: sigsuspender signal handler running "
"with incorrect mask.\n");
}
@@ -231,7 +231,7 @@ int main (int argc, char *argv[])
sleep (1);
send_process_signal (SIGURG);
sleep (1);
- if (sigcounts[SIGURG] != 3)
+ if (sigcounts[SIGURG] != 2)
printf ("FAIL: sigsuspend doesn't wake up for SIGURG.\n");
/*
OpenPOWER on IntegriCloud