diff options
Diffstat (limited to 'lib/tdb2/test/failtest_helper.c')
-rw-r--r-- | lib/tdb2/test/failtest_helper.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/tdb2/test/failtest_helper.c b/lib/tdb2/test/failtest_helper.c index 1358a6c6b2..d24ac4c42b 100644 --- a/lib/tdb2/test/failtest_helper.c +++ b/lib/tdb2/test/failtest_helper.c @@ -3,6 +3,8 @@ #include <string.h> #include <ccan/tap/tap.h> +bool failtest_suppress = false; + /* FIXME: From ccan/str */ static inline bool strends(const char *str, const char *postfix) { @@ -84,6 +86,9 @@ block_repeat_failures(struct failtest_call *history, unsigned num) { const struct failtest_call *i, *last = &history[num-1]; + if (failtest_suppress) + return FAIL_DONT_FAIL; + if (failmatch(last, INITIAL_TDB_MALLOC) || failmatch(last, URANDOM_OPEN) || failmatch(last, URANDOM_READ)) { |