1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

lib: fix null_nttime() tests

The test was checking -1 twice:

	torture_assert(tctx, null_nttime(-1), "-1");
	torture_assert(tctx, null_nttime(-1), "-1");

The first line was likely supposed to test the value "0".

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>
This commit is contained in:
Ralph Boehme 2021-10-27 17:02:48 +02:00 committed by Jeremy Allison
parent f73aff502c
commit d84779302c

View File

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