X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=test%2Fnotmuch-test.h;h=34dbb8e0403feefc4be402178943d8576a8d9c01;hb=d9a2b900b6525874b913276af91840983d81b3f1;hp=d39febbe8f2fe910191d98146a610f0272e6d592;hpb=cc1a6d2a947ef8c2577a77027d69fce012ae91fd;p=notmuch diff --git a/test/notmuch-test.h b/test/notmuch-test.h index d39febbe..34dbb8e0 100644 --- a/test/notmuch-test.h +++ b/test/notmuch-test.h @@ -1,16 +1,17 @@ #ifndef _NOTMUCH_TEST_H #define _NOTMUCH_TEST_H #include +#include #include 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