1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

lib: use NTTIME_FREEZE in a null_nttime() test

No change in behaviour.

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 e2740e4868)
This commit is contained in:
Ralph Boehme 2021-10-28 10:17:01 +02:00 committed by Jule Anger
parent 43f873d52a
commit f8fec80020

View File

@ -35,7 +35,7 @@ static bool test_null_time(struct torture_context *tctx)
static bool test_null_nttime(struct torture_context *tctx)
{
torture_assert(tctx, null_nttime(0), "0");
torture_assert(tctx, null_nttime(-1), "-1");
torture_assert(tctx, null_nttime(NTTIME_FREEZE), "-1");
torture_assert(tctx, !null_nttime(42), "42");
return true;
}