failtest_helper.h 598 B

123456789101112131415161718
  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. /* FIXME: Check these! */
  6. #define URANDOM_OPEN "open.c", 62, FAILTEST_OPEN
  7. #define URANDOM_READ "open.c", 42, FAILTEST_READ
  8. bool exit_check_log(struct tlist_calls *history);
  9. bool failmatch(const struct failtest_call *call,
  10. const char *file, int line, enum failtest_call_type type);
  11. enum failtest_result block_repeat_failures(struct tlist_calls *history);
  12. /* Set this to suppress failure. */
  13. extern bool failtest_suppress;
  14. #endif /* NTDB_TEST_LOGGING_H */