summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2012-03-23 10:43:48 +1030
committerRusty Russell <rusty@rustcorp.com.au>2012-03-23 10:43:48 +1030
commitc12970cc91cb4da8976801e194e29e33e02b340a (patch)
tree02d3508460aaa02fd50315101733536a11433e28
parent330e3e1b91ecbf99af3b598b324f21b5eff933fd (diff)
downloadsamba-c12970cc91cb4da8976801e194e29e33e02b340a.tar.gz
samba-c12970cc91cb4da8976801e194e29e33e02b340a.tar.bz2
samba-c12970cc91cb4da8976801e194e29e33e02b340a.zip
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 <rusty@rustcorp.com.au>
-rw-r--r--lib/tdb/test/run-die-during-transaction.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/tdb/test/run-die-during-transaction.c b/lib/tdb/test/run-die-during-transaction.c
index d6502f4ea4..ae7dafcfac 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;