aboutsummaryrefslogtreecommitdiff
path: root/nptl/tst-signal3.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@hack.frob.com>2015-03-04 15:14:56 -0800
committerRoland McGrath <roland@hack.frob.com>2015-03-04 15:14:56 -0800
commit2cfe32bc05b11b0dc633cd04f48f47734faf2399 (patch)
tree34b736b8344a6ceec8eeae0773d288ffa1b78c92 /nptl/tst-signal3.c
parente27176eea8aa74400204be4d3400e9723169fcaf (diff)
downloadglibc-2cfe32bc05b11b0dc633cd04f48f47734faf2399.zip
glibc-2cfe32bc05b11b0dc633cd04f48f47734faf2399.tar.gz
glibc-2cfe32bc05b11b0dc633cd04f48f47734faf2399.tar.bz2
Conditionalize some test code for SIGRTMIN, SA_SIGINFO.
Diffstat (limited to 'nptl/tst-signal3.c')
-rw-r--r--nptl/tst-signal3.c20
1 files changed, 13 insertions, 7 deletions
diff --git a/nptl/tst-signal3.c b/nptl/tst-signal3.c
index c17933e2..90b2e71 100644
--- a/nptl/tst-signal3.c
+++ b/nptl/tst-signal3.c
@@ -25,13 +25,14 @@
#include <unistd.h>
-/* Number of different signalss to use. Also is the number of
- threads. */
-#define N 10
+#ifdef SIGRTMIN
+
+/* Number of different signals to use. Also is the number of threads. */
+# define N 10
/* Maximum number of threads in flight at any one time. */
-#define INFLIGHT 5
+# define INFLIGHT 5
/* Number of signals sent in total. */
-#define ROUNDS 10000
+# define ROUNDS 10000
static int received[N][N];
@@ -255,6 +256,11 @@ do_test (void)
return result;
}
-#define TIMEOUT 10
-#define TEST_FUNCTION do_test ()
+# define TIMEOUT 10
+# define TEST_FUNCTION do_test ()
+
+#else
+# define TEST_FUNCTION 0
+#endif
+
#include "../test-skeleton.c"