]> git.ozlabs.org Git - ccan/blobdiff - ccan/tdb2/test/run-locktimeout.c
tdb2: test: try (almost) all tests with TDB_VERSION1 flag.
[ccan] / ccan / tdb2 / test / run-locktimeout.c
index d44713fcccd9336c73ba2c9c6c051f54a6d07a15..18b6e1a94881ed6d0f10fe126c0dedf433ea5dff 100644 (file)
@@ -1,11 +1,4 @@
-#include <ccan/tdb2/tdb.c>
-#include <ccan/tdb2/open.c>
-#include <ccan/tdb2/free.c>
-#include <ccan/tdb2/lock.c>
-#include <ccan/tdb2/io.c>
-#include <ccan/tdb2/hash.c>
-#include <ccan/tdb2/transaction.c>
-#include <ccan/tdb2/check.c>
+#include "tdb2-source.h"
 #include <ccan/tap/tap.h>
 #include "logging.h"
 #include "external-agent.h"
@@ -132,7 +125,10 @@ int main(int argc, char *argv[])
        struct tdb_context *tdb;
        TDB_DATA key = tdb_mkdata("hello", 5);
        int flags[] = { TDB_DEFAULT, TDB_NOMMAP,
-                       TDB_CONVERT, TDB_NOMMAP|TDB_CONVERT };
+                       TDB_CONVERT, TDB_NOMMAP|TDB_CONVERT,
+                       TDB_VERSION1, TDB_NOMMAP|TDB_VERSION1,
+                       TDB_CONVERT|TDB_VERSION1,
+                       TDB_NOMMAP|TDB_CONVERT|TDB_VERSION1 };
        struct agent *agent;
 
        plan_tests(sizeof(flags) / sizeof(flags[0]) * 15);