tdb2: test: Speed up run-01-new_database.
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 13 Sep 2011 22:43:26 +0000 (08:13 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 13 Sep 2011 22:43:26 +0000 (08:13 +0930)
commit2dfa64c3c9dc9a0f9d6bbf19e4fb32a08ad87614
tree2989bc7f3e9206990c284fa6742c76b14fe391dd
parentc3f3cad9eb58b84a944e501aaede818d4225d057
tdb2: test: Speed up run-01-new_database.

Don't run tdb_check with failtest on, since it is very slow.  Do the
tdb_check w/ failtest in a new test, but skip MMAP suppression which
doesn't add much and slows down valgrind a lot.

Before this change run-01-new_database took 40 seconds (under
valgrind), after it takes 8 seconds, and run-12-check takes 3
seconds).

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
(Imported from CCAN commit b3ae89992ecaffed31dcc2e912539c289478801a)
lib/tdb2/test/run-01-new_database.c
lib/tdb2/test/run-12-check.c [new file with mode: 0644]