summaryrefslogtreecommitdiff
path: root/lib/tdb2/test/failtest_helper.h
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2011-12-05 17:03:19 +1030
committerRusty Russell <rusty@rustcorp.com.au>2011-12-05 17:03:19 +1030
commit7f95ad045a36f1d40f66c815c9461bd5720c5808 (patch)
treec07bd21df5f33a5143bcbe0a3288b7b0f1cfb435 /lib/tdb2/test/failtest_helper.h
parentd5524222a42a9dd92f9ea25ced4b70d2a8da1b23 (diff)
downloadsamba-7f95ad045a36f1d40f66c815c9461bd5720c5808.tar.gz
samba-7f95ad045a36f1d40f66c815c9461bd5720c5808.tar.bz2
samba-7f95ad045a36f1d40f66c815c9461bd5720c5808.zip
tdb2: consolidate testing failtest suppression routines.
Less cut & paste means less patching as failtest changes. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (Imported from CCAN commit 1819a36a3e69565bd7b853503fceb846558a45bd)
Diffstat (limited to 'lib/tdb2/test/failtest_helper.h')
-rw-r--r--lib/tdb2/test/failtest_helper.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/tdb2/test/failtest_helper.h b/lib/tdb2/test/failtest_helper.h
index 02acac8c3c..7f912bb5e9 100644
--- a/lib/tdb2/test/failtest_helper.h
+++ b/lib/tdb2/test/failtest_helper.h
@@ -14,4 +14,7 @@ bool failmatch(const struct failtest_call *call,
enum failtest_result
block_repeat_failures(struct failtest_call *history, unsigned num);
+/* Set this to suppress failure. */
+extern bool failtest_suppress;
+
#endif /* TDB2_TEST_LOGGING_H */