X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-spawn.c;h=5816692de654f7c4d4035d6e392880cfd3e793b9;hb=f0b08ae92b4d606bd95773c2b3c263d0b83e1172;hp=dc6b0a8e79056c36c1c53842bf045edbc8fbb891;hpb=87c5f6fccee477f7e2c67ea4c95e51a3afd83a41;p=gnulib.git diff --git a/tests/test-spawn.c b/tests/test-spawn.c index dc6b0a8e7..5816692de 100644 --- a/tests/test-spawn.c +++ b/tests/test-spawn.c @@ -1,5 +1,5 @@ /* Test of substitute. - Copyright (C) 2009, 2010 Free Software Foundation, Inc. + Copyright (C) 2009-2012 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 @@ -46,8 +46,8 @@ main (void) 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;