X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ftdb2%2Ftest%2Frun-64-bit-tdb.c;h=566f5465c2e847ae708e2c8151eecd3882cae9c5;hp=206fc158bea887e0bd7312a800d4740346fd000f;hb=cc2d609dfca7192305ad477b8c2b52cfdc1aa9be;hpb=0f95489bd34ab05869e0bfaabf45149b3b161f28 diff --git a/ccan/tdb2/test/run-64-bit-tdb.c b/ccan/tdb2/test/run-64-bit-tdb.c index 206fc158..566f5465 100644 --- a/ccan/tdb2/test/run-64-bit-tdb.c +++ b/ccan/tdb2/test/run-64-bit-tdb.c @@ -1,12 +1,4 @@ -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include "tdb2-source.h" #include #include "logging.h" @@ -43,11 +35,11 @@ int main(int argc, char *argv[]) /* This makes a sparse file */ ok1(ftruncate(tdb->file->fd, 0xFFFFFFF0) == 0); ok1(add_free_record(tdb, old_size, 0xFFFFFFF0 - old_size, - TDB_LOCK_WAIT) == TDB_SUCCESS); + TDB_LOCK_WAIT, false) == TDB_SUCCESS); /* Now add a little record past the 4G barrier. */ ok1(tdb_expand_file(tdb, 100) == TDB_SUCCESS); - ok1(add_free_record(tdb, 0xFFFFFFF0, 100, TDB_LOCK_WAIT) + ok1(add_free_record(tdb, 0xFFFFFFF0, 100, TDB_LOCK_WAIT, false) == TDB_SUCCESS); ok1(tdb_check(tdb, NULL, NULL) == TDB_SUCCESS);