changeset 15386:981bbe46bba1

pthread_sigmask tests: Avoid a compiler warning. * tests/test-pthread_sigmask1.c (main): Complain if system() returns non-zero.
author Bruno Haible <bruno@clisp.org>
date Sat, 09 Jul 2011 02:00:59 +0200
parents 1ba9b52b2fba
children 076dc7aa834c
files ChangeLog tests/test-pthread_sigmask1.c
diffstat 2 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2011-07-08  Bruno Haible  <bruno@clisp.org>
 
+	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.
--- a/tests/test-pthread_sigmask1.c
+++ b/tests/test-pthread_sigmask1.c
@@ -60,7 +60,7 @@
 
   /* 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);