X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-sys_wait.c;h=3ed2e2e63e8519e836a9126bc12040fa2bc2ba8b;hb=1f28fa660e4ca110f073251a24ef3a94ad97ef69;hp=8c0170ed9b875149e38eab36eae63efcc4945c85;hpb=b2e2010c7c902235b5efb5bd3c6529f61b093aa4;p=gnulib.git diff --git a/tests/test-sys_wait.c b/tests/test-sys_wait.c index 8c0170ed9..3ed2e2e63 100644 --- a/tests/test-sys_wait.c +++ b/tests/test-sys_wait.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 @@ -23,8 +23,25 @@ /* Check for existence of required types. */ static pid_t a; +#include "test-sys_wait.h" + int main (void) { - return a; + if (test_sys_wait_macros ()) + return 1; + + switch (0) + { +#if 0 + /* Gnulib doesn't guarantee these, yet. */ + case WCONTINUED: + case WEXITED: + case WNOWAIT: + case WSTOPPED: +#endif + break; + } + + return a ? 1 : 0; }