X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-sys_wait.c;h=dce89c6a8b1bbf61b496cc59167bac002c378cbc;hb=721f56dcf49f8f004f609cc966f876922faad1a8;hp=8c0170ed9b875149e38eab36eae63efcc4945c85;hpb=8d8eda4eab3d2801251daf4eb31756c3595e2fc6;p=gnulib.git diff --git a/tests/test-sys_wait.c b/tests/test-sys_wait.c index 8c0170ed9..dce89c6a8 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-2011 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; }