X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=test%2Fnotmuch-test.h;h=3a0e90a3ecf93200e5f38a854e2c57183dacda8b;hb=1643c0459a496b45b601d91e0089fac507a2a6d1;hp=45d03d67540a795540da7287e1212d460b6289af;hpb=f7130468d27c4f37d45e6aa60baacfc3329ccff4;p=notmuch diff --git a/test/notmuch-test.h b/test/notmuch-test.h index 45d03d67..3a0e90a3 100644 --- a/test/notmuch-test.h +++ b/test/notmuch-test.h @@ -1,16 +1,23 @@ #ifndef _NOTMUCH_TEST_H #define _NOTMUCH_TEST_H +#include #include +#include +#include +#include +#include +#include + #include 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