From: Ralph Boehme Date: Wed, 27 Oct 2021 15:02:48 +0000 (+0200) Subject: lib: fix null_nttime() tests X-Git-Tag: ldb-2.5.0~349 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d84779302cc54a7b84c05ccc458e04b27fd142f4;p=thirdparty%2Fsamba.git lib: fix null_nttime() tests The test was checking -1 twice: torture_assert(tctx, null_nttime(-1), "-1"); torture_assert(tctx, null_nttime(-1), "-1"); The first line was likely supposed to test the value "0". BUG: https://bugzilla.samba.org/show_bug.cgi?id=14127 Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- diff --git a/lib/util/tests/time.c b/lib/util/tests/time.c index 039f7f4ccf8..6742e7fd3fe 100644 --- a/lib/util/tests/time.c +++ b/lib/util/tests/time.c @@ -34,7 +34,7 @@ static bool test_null_time(struct torture_context *tctx) static bool test_null_nttime(struct torture_context *tctx) { - torture_assert(tctx, null_nttime(-1), "-1"); + torture_assert(tctx, null_nttime(0), "0"); torture_assert(tctx, null_nttime(-1), "-1"); torture_assert(tctx, !null_nttime(42), "42"); return true;