X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;ds=sidebyside;f=ccan%2Ftdb2%2Ftest%2Frun-tdb1-wronghash-fail.c;h=63c1bdf1e46b637ded5ee05bb2fc5742d01ea79f;hb=926996e88c32445c874ff9c4f47f159db6b45995;hp=c7e789f2ca7a02f6dec0a87fdc3632fc315ba84d;hpb=98c754ffe65bc335f66161d6cc8705d4ea2710ec;p=ccan diff --git a/ccan/tdb2/test/run-tdb1-wronghash-fail.c b/ccan/tdb2/test/run-tdb1-wronghash-fail.c index c7e789f2..63c1bdf1 100644 --- a/ccan/tdb2/test/run-tdb1-wronghash-fail.c +++ b/ccan/tdb2/test/run-tdb1-wronghash-fail.c @@ -102,7 +102,7 @@ int main(int argc, char *argv[]) 0, &incompat_hash_attr); ok1(tdb); ok1(log_count == 0); - ok1(tdb1_check(tdb, NULL, NULL) == 0); + ok1(tdb_check(tdb, NULL, NULL) == TDB_SUCCESS); tdb_close(tdb); log_count = 0; @@ -110,7 +110,7 @@ int main(int argc, char *argv[]) 0, &incompat_hash_attr); ok1(tdb); ok1(log_count == 0); - ok1(tdb1_check(tdb, NULL, NULL) == 0); + ok1(tdb_check(tdb, NULL, NULL) == TDB_SUCCESS); tdb_close(tdb); /* It should open with jenkins hash if we don't specify. */ @@ -119,7 +119,7 @@ int main(int argc, char *argv[]) &log_attr); ok1(tdb); ok1(log_count == 0); - ok1(tdb1_check(tdb, NULL, NULL) == 0); + ok1(tdb_check(tdb, NULL, NULL) == TDB_SUCCESS); tdb_close(tdb); log_count = 0; @@ -127,7 +127,7 @@ int main(int argc, char *argv[]) &log_attr); ok1(tdb); ok1(log_count == 0); - ok1(tdb1_check(tdb, NULL, NULL) == 0); + ok1(tdb_check(tdb, NULL, NULL) == TDB_SUCCESS); tdb_close(tdb); log_count = 0; @@ -135,7 +135,7 @@ int main(int argc, char *argv[]) 0, &log_attr); ok1(tdb); ok1(log_count == 0); - ok1(tdb1_check(tdb, NULL, NULL) == 0); + ok1(tdb_check(tdb, NULL, NULL) == TDB_SUCCESS); tdb_close(tdb);