Use email_valid() to check email addresses throughout
[disorder] / libtests / test.c
index f5dd036..4fcb008 100644 (file)
@@ -26,6 +26,7 @@
 long long tests, errors;
 int fail_first;
 int verbose;
+int skipped;
 
 void count_error(void) {
   ++errors;
@@ -93,6 +94,13 @@ const char *do_printf(const char *fmt, ...) {
   return s;
 }
 
+jmp_buf fatal_env;
+
+void test_exitfn(int rc) {
+  assert(rc != 0);
+  longjmp(fatal_env, rc);
+}
+
 static const struct option options[] = {
   { "verbose", no_argument, 0, 'v' },
   { "fail-first", no_argument, 0, 'F' },