X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ftdb2%2Ftest%2Frun-lockall.c;h=7cd9b849ef681d049db63d8e2121207d38f831dd;hp=7f75159cca25a86be492cbeb1edb60b24b48c6db;hb=926996e88c32445c874ff9c4f47f159db6b45995;hpb=baa17ee2d5e01a32030f19e566007417d72b4b6e diff --git a/ccan/tdb2/test/run-lockall.c b/ccan/tdb2/test/run-lockall.c index 7f75159c..7cd9b849 100644 --- a/ccan/tdb2/test/run-lockall.c +++ b/ccan/tdb2/test/run-lockall.c @@ -3,15 +3,8 @@ #include "lock-tracking.h" #define fcntl fcntl_with_lockcheck +#include "tdb2-source.h" -#include -#include -#include -#include -#include -#include -#include -#include #include #include #include @@ -27,10 +20,11 @@ int main(int argc, char *argv[]) { struct agent *agent; - const int flags[] = { TDB_DEFAULT, - TDB_NOMMAP, - TDB_CONVERT, - TDB_CONVERT | TDB_NOMMAP }; + int flags[] = { TDB_DEFAULT, TDB_NOMMAP, + TDB_CONVERT, TDB_NOMMAP|TDB_CONVERT, + TDB_VERSION1, TDB_NOMMAP|TDB_VERSION1, + TDB_CONVERT|TDB_VERSION1, + TDB_NOMMAP|TDB_CONVERT|TDB_VERSION1 }; int i; plan_tests(13 * sizeof(flags)/sizeof(flags[0]) + 1);