#include <sys/stat.h>
#include <unistd.h>
#include <signal.h>
-#include <sys/wait.h>
#include <stddef.h>
#include <sys/socket.h>
#include <netdb.h>
extern long long tests, errors;
extern int fail_first;
extern int verbose;
+extern int skipped;
/** @brief Checks that @p expr is nonzero */
#define insist(expr) do { \
if(errors || verbose) \
fprintf(stderr, "test_"#name": %lld errors out of %lld tests\n", \
errors, tests); \
- return !!errors; \
+ if(errors) \
+ return 1; \
+ if(skipped) \
+ return 77; \
+ return 0; \
} \
\
struct swallow_semicolon