X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ftdb%2Ftest%2Frun.c;h=6ef3c4d6fe0de12e4f3a7a6a12dd6cc48c81f5f8;hp=53057433d50037e922fb49a4fdf9ac8cecc67471;hb=ab3df365ce9bcd76379cda8d3a7c188baa3e0a05;hpb=39357f4e89f4ac02eb11861812cbfc67b4f1d4ef diff --git a/ccan/tdb/test/run.c b/ccan/tdb/test/run.c index 53057433..6ef3c4d6 100644 --- a/ccan/tdb/test/run.c +++ b/ccan/tdb/test/run.c @@ -8,9 +8,12 @@ #include #include #include +#include +#include #include #include #include +#include "logging.h" int main(int argc, char *argv[]) { @@ -18,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");