X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Ftdb2%2Ftest%2Frun-05-readonly-open.c;h=80eb56759b703b95b866424b43e3c69b830af97c;hb=79d603a5f73dfbb655d8d08f67eecb5f2da542d5;hp=c4776f53b23651771175f596d1930605b11f7012;hpb=818ed29730b030ce79855fc35c212b51adff3180;p=ccan diff --git a/ccan/tdb2/test/run-05-readonly-open.c b/ccan/tdb2/test/run-05-readonly-open.c index c4776f53..80eb5675 100644 --- a/ccan/tdb2/test/run-05-readonly-open.c +++ b/ccan/tdb2/test/run-05-readonly-open.c @@ -5,17 +5,6 @@ #include "logging.h" #include "failtest_helper.h" -static bool failtest_suppress = false; - -/* Don't need to test everything here, just want expand testing. */ -static enum failtest_result -suppress_failure(struct failtest_call *history, unsigned num) -{ - if (failtest_suppress) - return FAIL_DONT_FAIL; - return block_repeat_failures(history, num); -} - int main(int argc, char *argv[]) { unsigned int i; @@ -31,7 +20,7 @@ int main(int argc, char *argv[]) unsigned int msgs = 0; failtest_init(argc, argv); - failtest_hook = suppress_failure; + failtest_hook = block_repeat_failures; failtest_exit_check = exit_check_log; seed_attr.base.attr = TDB_ATTRIBUTE_SEED;