* tests/test-sigprocmask.c: Don't include "ignore-value.h".
(main): Complain if system() returns non-zero.
* modules/sigprocmask-tests (Depends-on): Remove ignore-value.
+2011-07-08 Bruno Haible <bruno@clisp.org>
+
+ 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.
+ * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
+
2011-07-08 Bruno Haible <bruno@clisp.org>
pthread_sigmask: Work around IRIX bug.
tests/macros.h
Depends-on:
-ignore-value
sleep
configure.ac:
#include <stdlib.h>
#include <unistd.h>
-#include "ignore-value.h"
#include "macros.h"
#if !((defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__)
/* Request a SIGINT signal from outside. */
sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
- ignore_value (system (command));
+ ASSERT (system (command) == 0);
/* Wait. */
sleep (2);