]> git.ozlabs.org Git - ccan/commit
failtest: hook can return FAIL_PROBE
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 15 Feb 2011 13:01:29 +0000 (23:31 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 15 Feb 2011 13:01:29 +0000 (23:31 +1030)
commitc9f915e02c760caffe75da7f9a6a9a1de1bf1747
tree566e2727d18fd798f9566d4f22013ddeb6b5753e
parentc96ab569e73791eabe62e8d1c88b913e89eddc49
failtest: hook can return FAIL_PROBE

tdb2 has various places where it recovers from failure (eg. falling
back when it can't open /dev/urandom, or allocation for error
logging).  We want to test those paths, but doing so thoroughly causes
cominatorial explosion.

Add FAIL_PROBE for such cases: in this case it goes only 3 more calls
deep.
ccan/failtest/failtest.c
ccan/failtest/failtest.h
ccan/failtest/test/run-locking.c