projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update NEWS.stable
[gnulib.git]
/
tests
/
test-sys_wait.c
diff --git
a/tests/test-sys_wait.c
b/tests/test-sys_wait.c
index
b11cf9d
..
dce89c6
100644
(file)
--- a/
tests/test-sys_wait.c
+++ b/
tests/test-sys_wait.c
@@
-1,5
+1,5
@@
/* Test of <sys/wait.h> substitute.
/* Test of <sys/wait.h> substitute.
- Copyright (C) 2009 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
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;
/* Check for existence of required types. */
static pid_t a;
+#include "test-sys_wait.h"
+
int
main (void)
{
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;
}
}