]> git.ozlabs.org Git - ccan/blob - ccan/ntdb/test/failtest_helper.h
ntdb: fix up tests.
[ccan] / ccan / ntdb / test / failtest_helper.h
1 #ifndef NTDB_TEST_FAILTEST_HELPER_H
2 #define NTDB_TEST_FAILTEST_HELPER_H
3 #include <ccan/failtest/failtest.h>
4 #include <stdbool.h>
5
6 /* FIXME: Check these! */
7 #define URANDOM_OPEN            "open.c", 62, FAILTEST_OPEN
8 #define URANDOM_READ            "open.c", 42, FAILTEST_READ
9
10 bool exit_check_log(struct tlist_calls *history);
11 bool failmatch(const struct failtest_call *call,
12                const char *file, int line, enum failtest_call_type type);
13 enum failtest_result block_repeat_failures(struct tlist_calls *history);
14
15 /* Set this to suppress failure. */
16 extern bool failtest_suppress;
17
18 #endif /* NTDB_TEST_LOGGING_H */