]> git.cworth.org Git - notmuch/blobdiff - test/notmuch-test.h
test: move system includes to notmuch-test.h
[notmuch] / test / notmuch-test.h
index d39febbe8f2fe910191d98146a610f0272e6d592..3a0e90a3ecf93200e5f38a854e2c57183dacda8b 100644 (file)
@@ -1,16 +1,23 @@
 #ifndef _NOTMUCH_TEST_H
 #define _NOTMUCH_TEST_H
+#include <assert.h>
 #include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <sys/wait.h>
+#include <talloc.h>
+#include <unistd.h>
+
 #include <notmuch.h>
 
 inline static void
-expect0(int line, notmuch_status_t ret)
+expect0 (int line, notmuch_status_t ret)
 {
-   if (ret) {
-       fprintf (stderr, "line %d: %s\n", line, ret);
+    if (ret) {
+       fprintf (stderr, "line %d: %d\n", line, ret);
        exit (1);
-   }
+    }
 }
 
-#define EXPECT0(v)  expect0(__LINE__, v);
+#define EXPECT0(v)  expect0 (__LINE__, v);
 #endif