tdb2: failtest on tdb_expand
[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      "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
11
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);
15 enum failtest_result
16 block_repeat_failures(struct failtest_call *history, unsigned num);
17
18 #endif /* TDB2_TEST_LOGGING_H */