From: Bruno Haible Date: Sat, 15 Nov 2008 12:09:57 +0000 (+0100) Subject: Test also the existence of the SCHED_* macros. X-Git-Tag: v0.1~6678 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=c3788de0b891181a7d48421c7da2ca24d2678bbd;p=gnulib.git Test also the existence of the SCHED_* macros. --- diff --git a/ChangeLog b/ChangeLog index 041363331..f60579df5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2008-11-15 Bruno Haible + * tests/test-sched.c: Test also the existence of the SCHED_* macros. + Make the 'sched' module work on platforms where exists but is incomplete (such as Haiku). * lib/sched.in.h; Include the system's if it exists. diff --git a/tests/test-sched.c b/tests/test-sched.c index 77b2937b4..8925d3aa4 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