tests: avoid test failure on Solaris 10 due to lack of PATH export
[pspp] / tests / test-sys_wait.c
index 8c0170ed9b875149e38eab36eae63efcc4945c85..6ab3ebfd310b13e7181db006bca2981a8e6e4971 100644 (file)
 /* 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;
 }