X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-spawn.c;h=5b68171c5daf1fd182b3887e560b362945aad891;hb=d93e239a6a447bb45b77121739015760aad15584;hp=f7b919b79264ee7f5f5c687dfd69eb47653fea64;hpb=2233a5dfb90328805fea25b6ff386f1be8e172f6;p=gnulib.git diff --git a/tests/test-spawn.c b/tests/test-spawn.c index f7b919b79..5b68171c5 100644 --- a/tests/test-spawn.c +++ b/tests/test-spawn.c @@ -1,5 +1,5 @@ /* Test of substitute. - Copyright (C) 2009 Free Software Foundation, Inc. + Copyright (C) 2009-2013 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -40,14 +40,14 @@ extern void f (struct sched_param *g); int main (void) { - switch (0) + switch (POSIX_SPAWN_RESETIDS) { case POSIX_SPAWN_RESETIDS: case POSIX_SPAWN_SETPGROUP: case POSIX_SPAWN_SETSIGDEF: case POSIX_SPAWN_SETSIGMASK: - case POSIX_SPAWN_SETSCHEDPARAM: - case POSIX_SPAWN_SETSCHEDULER: + case (POSIX_SPAWN_SETSCHEDPARAM != 0 ? POSIX_SPAWN_SETSCHEDPARAM : -1): + case (POSIX_SPAWN_SETSCHEDULER != 0 ? POSIX_SPAWN_SETSCHEDULER : -2): ; } return s.c + s.d;