1 #ifndef TDB2_TEST_FAILTEST_HELPER_H
2 #define TDB2_TEST_FAILTEST_HELPER_H
3 #include <ccan/failtest/failtest.h>
6 /* FIXME: Check these! */
7 #define INITIAL_TDB_MALLOC "tdb.c", 189, FAILTEST_MALLOC
8 #define LOGGING_MALLOC "tdb.c", 766, FAILTEST_MALLOC
9 #define URANDOM_OPEN "tdb.c", 49, FAILTEST_OPEN
10 #define URANDOM_READ "tdb.c", 29, FAILTEST_READ
12 bool exit_check_log(struct failtest_call *history, unsigned num);
13 bool failmatch(const struct failtest_call *call,
14 const char *file, int line, enum failtest_call_type type);
16 block_repeat_failures(struct failtest_call *history, unsigned num);
18 #endif /* TDB2_TEST_LOGGING_H */