lib: use NTTIME_FREEZE in a null_nttime() test
authorRalph Boehme <slow@samba.org>
Thu, 28 Oct 2021 08:17:01 +0000 (10:17 +0200)
committerJeremy Allison <jra@samba.org>
Thu, 28 Oct 2021 18:11:28 +0000 (18:11 +0000)
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>
lib/util/tests/time.c

index 6742e7fd3fea9d83b15ab9323ead29c89a807bfe..ee1fd42c8cf0b422d954dc4d0fc79ee65f84e9bc 100644 (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;
 }