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 14:37:13 +0000 (14:37 +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 5cdfe4be07b63e7722406b5dfdf5c59a03951bf3..d94f50355d056d67cb6950418de02a02fe22e12c 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;
 }