X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Ftdb%2Ftest%2Frun-zero-append.c;h=8cb57f400bcc9154c819f665bfd8cb3aef13dabc;hb=233e3055c46ba2ed8fea326ac40ea0545eb0444f;hp=287d74c37a360da86d78f7cad04c0ddb00bfc939;hpb=e84f843dfeb798e66b32a212bb7ffb095eebd7aa;p=ccan diff --git a/ccan/tdb/test/run-zero-append.c b/ccan/tdb/test/run-zero-append.c index 287d74c3..8cb57f40 100644 --- a/ccan/tdb/test/run-zero-append.c +++ b/ccan/tdb/test/run-zero-append.c @@ -1,16 +1,18 @@ #define _XOPEN_SOURCE 500 -#include "tdb/tdb.h" -#include "tdb/io.c" -#include "tdb/tdb.c" -#include "tdb/lock.c" -#include "tdb/freelist.c" -#include "tdb/traverse.c" -#include "tdb/transaction.c" -#include "tdb/error.c" -#include "tdb/open.c" -#include "tap/tap.h" +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include +#include "logging.h" int main(int argc, char *argv[]) { @@ -18,7 +20,8 @@ int main(int argc, char *argv[]) TDB_DATA key, data; plan_tests(4); - tdb = tdb_open(NULL, 1024, TDB_INTERNAL, O_CREAT|O_TRUNC|O_RDWR, 0600); + tdb = tdb_open_ex(NULL, 1024, TDB_INTERNAL, O_CREAT|O_TRUNC|O_RDWR, + 0600, &taplogctx, NULL); ok1(tdb); /* Tickle bug on appending zero length buffer to zero length buffer. */