summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalph Boehme <slow@samba.org>2021-10-27 17:02:48 +0200
committerJeremy Allison <jra@samba.org>2021-10-28 18:11:28 +0000
commitd84779302cc54a7b84c05ccc458e04b27fd142f4 (patch)
tree9acdc15480fef7ddd0627b0e21db6da10428dd0f
parentf73aff502cadabb7fe6b94a697f0a2256d1d4aca (diff)
downloadsamba-d84779302cc54a7b84c05ccc458e04b27fd142f4.tar.gz
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>
-rw-r--r--lib/util/tests/time.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/util/tests/time.c b/lib/util/tests/time.c
index 039f7f4ccf8..6742e7fd3fe 100644
--- a/lib/util/tests/time.c
+++ b/lib/util/tests/time.c
@@ -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;