Commit fbae37ba authored by Rusty Russell's avatar Rusty Russell

tdb2: suppress failtest more than once on mmap.

Now we test failing mmap, ccanlint -v time has increased from 200 to
330 seconds.  Worse, tests no time out on my laptop.

Fix this, by preventing us from going down that particular rabbit hole.
ccanlint -v now takes 201 seconds again.
parent e43dc84f
...@@ -83,6 +83,11 @@ block_repeat_failures(struct tlist_calls *history) ...@@ -83,6 +83,11 @@ block_repeat_failures(struct tlist_calls *history)
return FAIL_PROBE; 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. */ /* Unlock or non-blocking lock is fail-once. */
if (is_unlock(last) || is_nonblocking_lock(last)) if (is_unlock(last) || is_nonblocking_lock(last))
return FAIL_PROBE; return FAIL_PROBE;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment