tdb2: simplify failtest helper.
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 5 Dec 2011 06:34:30 +0000 (17:04 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 5 Dec 2011 06:34:30 +0000 (17:04 +1030)
commitbb09b32910f6da647f5409f974eb056169ab9cdb
tree64daed75db83bc9beb010e4b150ed98dfd8aa1ff
parent6d248534936ce5169d651b7d5e47ae8c74efb610
tdb2: simplify failtest helper.

failtest now culls duplicates for itself (and more efficiently), so
don't replicate the logic here.  It changes things a bit, because
failtest uses backtraces rather than a simple call point to find
duplicates.

Also, fix one case (in run-11-simple-fetch.c) where we simply exited
rather than using failtest_exit().  We got away with it before, because
we never hit that particular failure pattern.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
(Imported from CCAN commit 3d99c9334fe3067c88772547b9c06acec21616ea)
lib/tdb2/test/failtest_helper.c
lib/tdb2/test/run-11-simple-fetch.c