tdb2: more tests, hash collision fixes, attribute support.
[ccan] / ccan / tdb2 / test / run-new_database.c
index 45675e2e86b4a5ee8b4b87c1a72998369a40bf0b..2f594abab6e935db2c80be26f9357810775826a2 100644 (file)
@@ -16,8 +16,7 @@ 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("run-new_database", flags[i],
-                              O_RDWR|O_CREAT|O_TRUNC, 0600, NULL);
-               tdb->log = tap_log_fn;
+                              O_RDWR|O_CREAT|O_TRUNC, 0600, &tap_log_attr);
                ok1(tdb);
                if (tdb) {
                        ok1(tdb_check(tdb, NULL, NULL) == 0);