X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ftdb2%2Ftest%2Ffailtest_helper.c;fp=ccan%2Ftdb2%2Ftest%2Ffailtest_helper.c;h=3172e3ad6e150478812c6b9e33434929ee147167;hp=f094a5974ea26c34a54474875d7c5c04b557ebeb;hb=fbae37ba91ec230e34be564084099726cc3a9d47;hpb=e43dc84fe91f64d8761aeda6338a1afbf701b7f5 diff --git a/ccan/tdb2/test/failtest_helper.c b/ccan/tdb2/test/failtest_helper.c index f094a597..3172e3ad 100644 --- a/ccan/tdb2/test/failtest_helper.c +++ b/ccan/tdb2/test/failtest_helper.c @@ -83,6 +83,11 @@ block_repeat_failures(struct tlist_calls *history) return FAIL_PROBE; } + /* We handle mmap failing, by falling back to read/write, so + * don't try all possible paths. */ + if (last->type == FAILTEST_MMAP) + return FAIL_PROBE; + /* Unlock or non-blocking lock is fail-once. */ if (is_unlock(last) || is_nonblocking_lock(last)) return FAIL_PROBE;