]> git.ozlabs.org Git - ccan/blobdiff - ccan/tdb/test/run-check.c
tests: now we run in tmp dir, always create temporary files in this dir.
[ccan] / ccan / tdb / test / run-check.c
index dfba583fc8a20f9e06a547f389f27b4749e3eb9f..3a4a39f1f32fad5ba55ba689c0b1c9ffec4d9653 100644 (file)
@@ -19,7 +19,7 @@ int main(int argc, char *argv[])
        TDB_DATA key, data;
 
        plan_tests(9);
-       tdb = tdb_open("/tmp/test5.tdb", 1, TDB_CLEAR_IF_FIRST,
+       tdb = tdb_open("run-check.tdb", 1, TDB_CLEAR_IF_FIRST,
                       O_CREAT|O_TRUNC|O_RDWR, 0600);
 
        ok1(tdb);
@@ -34,7 +34,7 @@ int main(int argc, char *argv[])
        ok1(tdb_check(tdb, NULL, NULL) == 0);
        tdb_close(tdb);
 
-       tdb = tdb_open("/tmp/test5.tdb", 1024, 0, O_RDWR, 0);
+       tdb = tdb_open("run-check.tdb", 1024, 0, O_RDWR, 0);
        ok1(tdb);
        ok1(tdb_check(tdb, NULL, NULL) == 0);
        tdb_close(tdb);