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 f094a5974e..3172e3ad6e 100644 --- a/lib/tdb2/test/failtest_helper.c +++ b/lib/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; |