s3:registry: do not use regdb functions during db upgrade
[Samba/gebeck_regimport.git] / lib / tdb2 / test / failtest_helper.h
blob02acac8c3cf493a0bd64316651cefb25d810f78b
1 #ifndef TDB2_TEST_FAILTEST_HELPER_H
2 #define TDB2_TEST_FAILTEST_HELPER_H
3 #include <ccan/failtest/failtest.h>
4 #include <stdbool.h>
6 /* FIXME: Check these! */
7 #define INITIAL_TDB_MALLOC "open.c", 396, FAILTEST_MALLOC
8 #define URANDOM_OPEN "open.c", 62, FAILTEST_OPEN
9 #define URANDOM_READ "open.c", 42, FAILTEST_READ
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);
17 #endif /* TDB2_TEST_LOGGING_H */