tdb2: test: Speed up run-01-new_database.
authorRusty Russell <rusty@rustcorp.com.au>
Wed, 31 Aug 2011 06:09:17 +0000 (15:39 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 31 Aug 2011 06:09:17 +0000 (15:39 +0930)
commitb3ae89992ecaffed31dcc2e912539c289478801a
tree3aa565f8a097d5432e0510d3212be6c33403a084
parenta99c2ccf97465d47c3277d997ea93f20ff97ad4d
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).
ccan/tdb2/test/run-01-new_database.c
ccan/tdb2/test/run-12-check.c [new file with mode: 0644]