X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Ftdb2%2Ftest%2Frun-record-expand.c;h=63bbf18d4fc0cae98769dff1c9851aac7b099214;hb=bb4d59ee1e914df9f8066e59a9c9a6604e581c40;hp=7e07b9345b78fe8d5670aaf6f7fd21f549363581;hpb=2088fa3cd72332f5517edeb9267e381fdf35db01;p=ccan diff --git a/ccan/tdb2/test/run-record-expand.c b/ccan/tdb2/test/run-record-expand.c index 7e07b934..63bbf18d 100644 --- a/ccan/tdb2/test/run-record-expand.c +++ b/ccan/tdb2/test/run-record-expand.c @@ -1,8 +1,11 @@ #include +#include #include #include #include +#include #include +#include #include #include "logging.h" @@ -13,8 +16,9 @@ int main(int argc, char *argv[]) { unsigned int i; struct tdb_context *tdb; - int flags[] = { TDB_INTERNAL, TDB_DEFAULT, - TDB_INTERNAL|TDB_CONVERT, TDB_CONVERT }; + int flags[] = { TDB_INTERNAL, TDB_DEFAULT, TDB_NOMMAP, + TDB_INTERNAL|TDB_CONVERT, TDB_CONVERT, + TDB_NOMMAP|TDB_CONVERT }; struct tdb_data key = { (unsigned char *)"key", 3 }; struct tdb_data data; @@ -43,5 +47,7 @@ int main(int argc, char *argv[]) tdb_close(tdb); } ok1(tap_log_messages == 0); + free(data.dptr); + return exit_status(); }