notmuch/test/notmuch-test.h
David Bremner 2c17327ee5 test: add known broken test for error handling on closed database
Based on id:87d05je1j6.fsf@powell.devork.be
2020-07-03 21:01:39 -03:00

17 lines
303 B
C

#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)
{
if (ret) {
fprintf (stderr, "line %d: %d\n", line, ret);
exit (1);
}
}
#define EXPECT0(v) expect0 (__LINE__, v);
#endif