X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Ftdb%2Ftest%2Frun-traverse-in-transaction.c;h=58ff750bb89ab493b4a6476352e0f285350b57f2;hb=95458bafc9dc99ac8fcd68aa8f48a9fc564e6a31;hp=37a4f6d3ffd9ee760fef70de4746fc922f66285b;hpb=02b364ae6c3a120101aa1fd6eb0919994ca8ffb1;p=ccan diff --git a/ccan/tdb/test/run-traverse-in-transaction.c b/ccan/tdb/test/run-traverse-in-transaction.c index 37a4f6d3..58ff750b 100644 --- a/ccan/tdb/test/run-traverse-in-transaction.c +++ b/ccan/tdb/test/run-traverse-in-transaction.c @@ -8,6 +8,7 @@ #include #include #include +#include #include #include #include @@ -46,8 +47,8 @@ int main(int argc, char *argv[]) if (!agent) err(1, "preparing agent"); - tdb = tdb_open("/tmp/test2.tdb", 1024, TDB_CLEAR_IF_FIRST, - O_CREAT|O_TRUNC|O_RDWR, 0600); + tdb = tdb_open("run-traverse-in-transaction.tdb", + 1024, TDB_CLEAR_IF_FIRST, O_CREAT|O_TRUNC|O_RDWR, 0600); ok1(tdb); key.dsize = strlen("hi");