1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-08 05:57:51 +03:00

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)
This commit is contained in:
Ralph Boehme 2021-10-28 10:18:54 +02:00 committed by Jule Anger
parent 38ac4c0947
commit 7e1a65ed98

View 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;
}