]> git.ozlabs.org Git - ccan/blobdiff - ccan/tdb/test/run-no-lock-during-traverse.c
tdb: fix test helper to include own header, fix function definition.
[ccan] / ccan / tdb / test / run-no-lock-during-traverse.c
index 1eec04b519b9acf73186d58703979d188e7a1c7d..bbca2e93a391b88e4a517947adb6f23c4dc85b33 100644 (file)
@@ -17,6 +17,7 @@
 #include <ccan/tap/tap.h>
 #include <stdlib.h>
 #include <err.h>
+#include "logging.h"
 
 #undef fcntl
 
@@ -78,8 +79,9 @@ int main(int argc, char *argv[])
        int errors = 0;
 
        plan_tests(41);
-       tdb = tdb_open("/tmp/test8.tdb", 1024, TDB_CLEAR_IF_FIRST,
-                      O_CREAT|O_TRUNC|O_RDWR, 0600);
+       tdb = tdb_open_ex("run-no-lock-during-traverse.tdb",
+                         1024, TDB_CLEAR_IF_FIRST, O_CREAT|O_TRUNC|O_RDWR,
+                         0600, &taplogctx, NULL);
 
        ok1(tdb);
        ok1(prepare_entries(tdb));