X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;ds=sidebyside;f=ccan%2Ftdb2%2Ftest%2Frun-lockall.c;h=7cd9b849ef681d049db63d8e2121207d38f831dd;hb=380372e733416c2b348d5307f536d0a0807e95df;hp=4aedf59743d81b48ad372f838d412be25bd64f0b;hpb=f513c5701b184fd1c0a6f03431c7fdda3ab6d2cf;p=ccan diff --git a/ccan/tdb2/test/run-lockall.c b/ccan/tdb2/test/run-lockall.c index 4aedf597..7cd9b849 100644 --- a/ccan/tdb2/test/run-lockall.c +++ b/ccan/tdb2/test/run-lockall.c @@ -1,17 +1,10 @@ -#include "config.h" +#include #include #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);