X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ftdb2%2Ftest%2Frun-record-expand.c;h=3f008b0a6f91eabcf300eaa123145e20a1cb467f;hp=7e07b9345b78fe8d5670aaf6f7fd21f549363581;hb=850c5cfed46cd4f38df79783791969c7b30ad9da;hpb=2088fa3cd72332f5517edeb9267e381fdf35db01 diff --git a/ccan/tdb2/test/run-record-expand.c b/ccan/tdb2/test/run-record-expand.c index 7e07b934..3f008b0a 100644 --- a/ccan/tdb2/test/run-record-expand.c +++ b/ccan/tdb2/test/run-record-expand.c @@ -2,7 +2,9 @@ #include #include #include +#include #include +#include #include #include "logging.h" @@ -13,8 +15,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 +46,7 @@ int main(int argc, char *argv[]) tdb_close(tdb); } ok1(tap_log_messages == 0); + free(data.dptr); + return exit_status(); }