summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalph Boehme <slow@samba.org>2021-10-28 10:18:54 +0200
committerJule Anger <janger@samba.org>2021-11-10 14:37:13 +0000
commit7e1a65ed980afe6d5c987baf98d6f3700bbb9145 (patch)
tree69130add81c04bd0d436da36e86f073599cc4562
parent38ac4c094749d880ae8b1e25942ebb7b1c182c49 (diff)
downloadsamba-7e1a65ed980afe6d5c987baf98d6f3700bbb9145.tar.gz
lib: add a test for null_nttime(NTTIME_THAW)
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)
-rw-r--r--lib/util/tests/time.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/util/tests/time.c b/lib/util/tests/time.c
index 5cdfe4be07b..d94f50355d0 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;
}