]> git.ozlabs.org Git - ccan/blobdiff - ccan/tdb/test/run-traverse-in-transaction.c
tests: now we run in tmp dir, always create temporary files in this dir.
[ccan] / ccan / tdb / test / run-traverse-in-transaction.c
index 37a4f6d3ffd9ee760fef70de4746fc922f66285b..58ff750bb89ab493b4a6476352e0f285350b57f2 100644 (file)
@@ -8,6 +8,7 @@
 #include <ccan/tdb/transaction.c>
 #include <ccan/tdb/error.c>
 #include <ccan/tdb/open.c>
+#include <ccan/tdb/check.c>
 #include <ccan/tap/tap.h>
 #include <stdlib.h>
 #include <stdbool.h>
@@ -46,8 +47,8 @@ int main(int argc, char *argv[])
        if (!agent)
                err(1, "preparing agent");
 
-       tdb = tdb_open("/tmp/test2.tdb", 1024, TDB_CLEAR_IF_FIRST,
-                      O_CREAT|O_TRUNC|O_RDWR, 0600);
+       tdb = tdb_open("run-traverse-in-transaction.tdb",
+                      1024, TDB_CLEAR_IF_FIRST, O_CREAT|O_TRUNC|O_RDWR, 0600);
        ok1(tdb);
 
        key.dsize = strlen("hi");