lib: add a test for null_nttime(NTTIME_THAW)
authorRalph Boehme <slow@samba.org>
Thu, 28 Oct 2021 08:18:54 +0000 (10:18 +0200)
committerJule Anger <janger@samba.org>
Wed, 10 Nov 2021 16:21:10 +0000 (16:21 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14127

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit 194faa76161a12ae1eae2b471d6f159d97ef75a8)

lib/util/tests/time.c

index 33930a77173b7efc7c134418313a18692b5eeaa8..ec27f567a7198d1f2ac57bf81c8057298e21cc71 100644 (file)
@@ -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;
 }