]> git.ozlabs.org Git - ccan/blobdiff - ccan/tdb/test/run-corrupt.c
tests: now we run in tmp dir, always create temporary files in this dir.
[ccan] / ccan / tdb / test / run-corrupt.c
index eaa326bdd0e70274ce14fec0804feb5ae133100e..a5c4aa4417e8d5f7b0565a3c6ec5781df6630b68 100644 (file)
@@ -103,7 +103,7 @@ int main(int argc, char *argv[])
 
        plan_tests(4);
        /* This should use mmap. */
-       tdb = tdb_open("/tmp/test6.tdb", 2, TDB_CLEAR_IF_FIRST,
+       tdb = tdb_open("run-corrupt.tdb", 2, TDB_CLEAR_IF_FIRST,
                       O_CREAT|O_TRUNC|O_RDWR, 0600);
 
        if (!tdb)
@@ -112,7 +112,7 @@ int main(int argc, char *argv[])
        tdb_close(tdb);
 
        /* This should not. */
-       tdb = tdb_open("/tmp/test6.tdb", 2, TDB_CLEAR_IF_FIRST|TDB_NOMMAP,
+       tdb = tdb_open("run-corrupt.tdb", 2, TDB_CLEAR_IF_FIRST|TDB_NOMMAP,
                       O_CREAT|O_TRUNC|O_RDWR, 0600);
 
        if (!tdb)