From: Bruno Haible Date: Sat, 9 Jul 2011 00:00:59 +0000 (+0200) Subject: pthread_sigmask tests: Avoid a compiler warning. X-Git-Tag: v0.1~2140 X-Git-Url: http://erislabs.net/gitweb/?a=commitdiff_plain;h=9a4ef223da492c45a9913fb232e3256044f8115e;p=gnulib.git pthread_sigmask tests: Avoid a compiler warning. * tests/test-pthread_sigmask1.c (main): Complain if system() returns non-zero. --- diff --git a/ChangeLog b/ChangeLog index 919c98f2a..e3e802e78 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2011-07-08 Bruno Haible + pthread_sigmask tests: Avoid a compiler warning. + * tests/test-pthread_sigmask1.c (main): Complain if system() returns + non-zero. + sigprocmask tests: A better way to avoid a compiler warning. * tests/test-sigprocmask.c: Don't include "ignore-value.h". (main): Complain if system() returns non-zero. diff --git a/tests/test-pthread_sigmask1.c b/tests/test-pthread_sigmask1.c index d09c216e0..f746ec148 100644 --- a/tests/test-pthread_sigmask1.c +++ b/tests/test-pthread_sigmask1.c @@ -60,7 +60,7 @@ main (int argc, char *argv[]) /* Request a SIGINT signal from outside. */ sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid); - system (command); + ASSERT (system (command) == 0); /* Wait. */ sleep (2);