A number of small build fixes found while looking at mingw support.
[awesomized/libmemcached] / libtest / cmdline.h
index ae4d9ba1d67751f73315277095642842d2d53ed7..ca7098dd722343823e223cb932f6dbdead0615c5 100644 (file)
 
 #pragma once
 
-#include <spawn.h>
+#ifdef HAVE_SPAWN_H
+# include <spawn.h>
+#endif
+
+/*
+  http://www.gnu.org/software/automake/manual/automake.html#Tests
+  When no test protocol is in use, an exit status of 0 from a test script will denote a success, an exit status of 77 a skipped test, an exit status of 99 an hard error, and any other exit status will denote a failure.
+*/
 
-// http://www.gnu.org/software/automake/manual/automake.html#Using-the-TAP-test-protocol
 #define EXIT_SKIP 77
-#define EXIT_FATAL 77
+#define EXIT_FATAL 99
 
 #ifndef EX_NOEXEC
-#  define EX_NOEXEC 126
+# define EX_NOEXEC 126
 #endif
 
 #ifndef EX_NOTFOUND
-#  define EX_NOTFOUND 127
+# define EX_NOTFOUND 127
 #endif
 
 namespace libtest {