summaryrefslogtreecommitdiff
path: root/tests/test-sched.c
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2008-11-15 13:09:57 +0100
committerBruno Haible <bruno@clisp.org>2008-11-15 13:09:57 +0100
commitc3788de0b891181a7d48421c7da2ca24d2678bbd (patch)
treefde469fb675ea7a1ce9d282874a964c863104732 /tests/test-sched.c
parent4dd30a3ea2e00bbad5091af335962c4ebe4bfcfa (diff)
downloadgnulib-c3788de0b891181a7d48421c7da2ca24d2678bbd.tar.gz
Test also the existence of the SCHED_* macros.
Diffstat (limited to 'tests/test-sched.c')
-rw-r--r--tests/test-sched.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/test-sched.c b/tests/test-sched.c
index 77b2937b47..8925d3aa4a 100644
--- a/tests/test-sched.c
+++ b/tests/test-sched.c
@@ -23,6 +23,9 @@
/* Check that 'struct sched_param' is defined. */
static struct sched_param a;
+/* Check that the SCHED_* macris are defined and compile-time constants. */
+static int b[] = { SCHED_FIFO, SCHED_RR, SCHED_OTHER };
+
static int f1;
int