lib/tdb: fix up run-die-during-transaction test cases on Solaris.
[samba.git] / lib / tdb / test / run-3G-file.c
index f3ff4e4be274c2284d3862987f855bd393fbabe6..cc700c267655efa494ff1fcd2d0583147adff7c5 100644 (file)
@@ -1,6 +1,3 @@
-/* We need this otherwise fcntl locking fails. */
-#define _FILE_OFFSET_BITS 64
-#define _XOPEN_SOURCE 500
 #include "../common/tdb_private.h"
 #include "../common/io.c"
 #include "../common/tdb.c"
@@ -12,7 +9,7 @@
 #include "../common/open.c"
 #include "../common/check.c"
 #include "../common/hash.c"
-#include <ccan/tap/tap.h>
+#include "tap-interface.h"
 #include <stdlib.h>
 #include <err.h>
 #include "logging.h"
@@ -81,8 +78,8 @@ int main(int argc, char *argv[])
        ok1(tdb);
        tdb->methods = &large_io_methods;
 
-       /* Enlarge the file (internally multiplies by 100). */
-       ok1(tdb_expand(tdb, 30000000) == 0);
+       /* Enlarge the file (internally multiplies by 2). */
+       ok1(tdb_expand(tdb, 1500000000) == 0);
 
        /* Put an entry in, and check it. */
        key.dsize = strlen("hi");