From: Ralph Boehme Date: Thu, 28 Oct 2021 08:18:54 +0000 (+0200) Subject: lib: add a test for null_nttime(NTTIME_THAW) X-Git-Tag: ldb-2.5.0~346 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=194faa76161a12ae1eae2b471d6f159d97ef75a8;p=thirdparty%2Fsamba.git lib: add a test for null_nttime(NTTIME_THAW) 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 33930a77173..ec27f567a71 100644 --- a/lib/util/tests/time.c +++ b/lib/util/tests/time.c @@ -36,6 +36,7 @@ static bool test_null_nttime(struct torture_context *tctx) { torture_assert(tctx, null_nttime(0), "0"); torture_assert(tctx, !null_nttime(NTTIME_FREEZE), "-1"); + torture_assert(tctx, !null_nttime(NTTIME_THAW), "-2"); torture_assert(tctx, !null_nttime(42), "42"); return true; }