From c12970cc91cb4da8976801e194e29e33e02b340a Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Fri, 23 Mar 2012 10:43:48 +1030 Subject: [PATCH] lib/tdb: fix test/run-die-during-transaction when HAVE_INCOHERENT_MMAP. Since we force mmap on, we don't intercept writes to the db, so we never see it in an inconsistent state. #ifdef over the check that we should have recovered it at least once. Signed-off-by: Rusty Russell --- lib/tdb/test/run-die-during-transaction.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/tdb/test/run-die-during-transaction.c b/lib/tdb/test/run-die-during-transaction.c index d6502f4ea40..ae7dafcfac7 100644 --- a/lib/tdb/test/run-die-during-transaction.c +++ b/lib/tdb/test/run-die-during-transaction.c @@ -194,7 +194,12 @@ reset: return false; } +#ifdef HAVE_INCOHERENT_MMAP + /* This means we always mmap, which makes this test a noop. */ + ok1(1); +#else ok1(needed_recovery); +#endif ok1(locking_errors == 0); ok1(forget_locking() == 0); locking_errors = 0; -- 2.11.4.GIT