X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ftdb%2Ftest%2Frun.c;h=6ef3c4d6fe0de12e4f3a7a6a12dd6cc48c81f5f8;hp=f7fc2a0a08d8edb7d2ace398691858d0cce759d6;hb=ab3df365ce9bcd76379cda8d3a7c188baa3e0a05;hpb=b86f8688feef575cb0c69b964a47fa1167cde528 diff --git a/ccan/tdb/test/run.c b/ccan/tdb/test/run.c index f7fc2a0a..6ef3c4d6 100644 --- a/ccan/tdb/test/run.c +++ b/ccan/tdb/test/run.c @@ -9,9 +9,11 @@ #include #include #include +#include #include #include #include +#include "logging.h" int main(int argc, char *argv[]) { @@ -19,8 +21,8 @@ int main(int argc, char *argv[]) TDB_DATA key, data; plan_tests(10); - tdb = tdb_open("/tmp/test.tdb", 1024, TDB_CLEAR_IF_FIRST, - O_CREAT|O_TRUNC|O_RDWR, 0600); + tdb = tdb_open_ex("run.tdb", 1024, TDB_CLEAR_IF_FIRST, + O_CREAT|O_TRUNC|O_RDWR, 0600, &taplogctx, NULL); ok1(tdb); key.dsize = strlen("hi");