From 205242e1769f96e0e8fccd52378965d35dd02093 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Tue, 14 Feb 2012 14:45:21 +1030 Subject: tdb/test: fix up tests for use in SAMBA tdb code. 1) Make sure we include "tdb_private.h" first, to get the right headers (esp. the correct setting of _FILE_OFFSET_BITS before unistd.h). 2) Fix 3G file test since expand logic has changed. 3) Fix nested transaction test, since default is to allow nesting. 4) Capture fdatasync, which was slowing down transaction expand. Signed-off-by: Rusty Russell --- lib/tdb/test/lock-tracking.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/tdb/test/lock-tracking.c') diff --git a/lib/tdb/test/lock-tracking.c b/lib/tdb/test/lock-tracking.c index e66dae75cd..b6f1cc27d0 100644 --- a/lib/tdb/test/lock-tracking.c +++ b/lib/tdb/test/lock-tracking.c @@ -1,10 +1,10 @@ /* We save the locks so we can reaquire them. */ +#include "../common/tdb_private.h" #include #include #include #include #include "tap-interface.h" -#include "../common/tdb_private.h" #include "lock-tracking.h" struct lock { -- cgit