tdb2: move open routines into a separate file (open.c)
[ccan] / ccan / tdb2 / test / failtest_helper.h
1 #ifndef TDB2_TEST_FAILTEST_HELPER_H
2 #define TDB2_TEST_FAILTEST_HELPER_H
3 #include <ccan/failtest/failtest.h>
4 #include <stdbool.h>
5
6 /* FIXME: Check these! */
7 #define INITIAL_TDB_MALLOC      "open.c", 184, FAILTEST_MALLOC
8 #define URANDOM_OPEN            "open.c", 43, FAILTEST_OPEN
9 #define URANDOM_READ            "open.c", 23, FAILTEST_READ
10
11 bool exit_check_log(struct failtest_call *history, unsigned num);
12 bool failmatch(const struct failtest_call *call,
13                const char *file, int line, enum failtest_call_type type);
14 enum failtest_result
15 block_repeat_failures(struct failtest_call *history, unsigned num);
16
17 #endif /* TDB2_TEST_LOGGING_H */