]> git.ozlabs.org Git - ccan/blobdiff - ccan/tdb/test/run-nested-traverse.c
tests: now we run in tmp dir, always create temporary files in this dir.
[ccan] / ccan / tdb / test / run-nested-traverse.c
index 4470610a37c342b876f119e7ec4b56910f2a3bf0..156946af1fb82ce61a0856afbeee23554459125f 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>
@@ -59,7 +60,7 @@ int main(int argc, char *argv[])
        if (!agent)
                err(1, "preparing agent");
 
-       tdb = tdb_open("/tmp/test3.tdb", 1024, TDB_CLEAR_IF_FIRST,
+       tdb = tdb_open("run-nested-traverse.tdb", 1024, TDB_CLEAR_IF_FIRST,
                       O_CREAT|O_TRUNC|O_RDWR, 0600);
        ok1(tdb);