tdb2: more tests, hash collision fixes, attribute support.
[ccan] / ccan / tdb2 / test / run-new_database.c
index 28bae2a8dc4b93d0aedf94517dcf14ff3bbecf7a..2f594abab6e935db2c80be26f9357810775826a2 100644 (file)
@@ -15,9 +15,8 @@ int main(int argc, char *argv[])
 
        plan_tests(sizeof(flags) / sizeof(flags[0]) * 2 + 1);
        for (i = 0; i < sizeof(flags) / sizeof(flags[0]); i++) {
-               tdb = tdb_open("/tmp/run-new_database.tdb", flags[i],
-                              O_RDWR|O_CREAT|O_TRUNC, 0600, NULL);
-               tdb->log = tap_log_fn;
+               tdb = tdb_open("run-new_database", flags[i],
+                              O_RDWR|O_CREAT|O_TRUNC, 0600, &tap_log_attr);
                ok1(tdb);
                if (tdb) {
                        ok1(tdb_check(tdb, NULL, NULL) == 0);