X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ftdb%2Ftest%2Frun-3G-file.c;h=d56aed57bd42a4fd3871c21b791b1f7e3e8ad701;hp=94639113656d9b6967b46c0949f3006db1fab47a;hb=448b9194f76a138eef05047b1aaa5d211f72e97f;hpb=d665ff828977d76f8ec6ed53e6aab2e6fa124675 diff --git a/ccan/tdb/test/run-3G-file.c b/ccan/tdb/test/run-3G-file.c index 94639113..d56aed57 100644 --- a/ccan/tdb/test/run-3G-file.c +++ b/ccan/tdb/test/run-3G-file.c @@ -11,9 +11,11 @@ #include #include #include +#include #include #include #include +#include "logging.h" static int tdb_expand_file_sparse(struct tdb_context *tdb, tdb_off_t size, @@ -73,8 +75,8 @@ int main(int argc, char *argv[]) struct tdb_record rec; plan_tests(24); - tdb = tdb_open("/tmp/test.tdb", 1024, TDB_CLEAR_IF_FIRST, - O_CREAT|O_TRUNC|O_RDWR, 0600); + tdb = tdb_open_ex("run-36-file.tdb", 1024, TDB_CLEAR_IF_FIRST, + O_CREAT|O_TRUNC|O_RDWR, 0600, &taplogctx, NULL); ok1(tdb); tdb->methods = &large_io_methods;