]> git.notmuchmail.org Git - notmuch/blobdiff - test/notmuch-test.h
lib/n_d_needs_upgrade: handle error return from n_d_get_version
[notmuch] / test / notmuch-test.h
index 45d03d67540a795540da7287e1212d460b6289af..34dbb8e0403feefc4be402178943d8576a8d9c01 100644 (file)
@@ -1,16 +1,17 @@
 #ifndef _NOTMUCH_TEST_H
 #define _NOTMUCH_TEST_H
 #include <stdio.h>
+#include <stdlib.h>
 #include <notmuch.h>
 
 inline static void
-expect0(int line, notmuch_status_t ret)
+expect0 (int line, notmuch_status_t ret)
 {
-   if (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