X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ftdb2%2Ftest%2Frun-13-delete.c;h=ae01e38bf721c6c5008f0f27807f7c5313255643;hp=2f40d55a58e3cfec4d3ce68ae4e2714301fbbabd;hb=5e30abc662990449444769c71cf98ca788db4117;hpb=6804501c350181dea8f531142b28c620b70edbd9 diff --git a/ccan/tdb2/test/run-13-delete.c b/ccan/tdb2/test/run-13-delete.c index 2f40d55a..ae01e38b 100644 --- a/ccan/tdb2/test/run-13-delete.c +++ b/ccan/tdb2/test/run-13-delete.c @@ -4,6 +4,7 @@ #include #include #include +#include #include #include "logging.h" @@ -159,7 +160,7 @@ int main(int argc, char *argv[]) /* Check mixed bitpattern. */ test_val(tdb, 0x123456789ABCDEF0ULL); - ok1(!tdb_has_locks(tdb)); + ok1(tdb->allrecord_lock.count == 0 && tdb->num_lockrecs == 0); tdb_close(tdb); /* Deleting these entries in the db gave problems. */