From 2901e79edb82fcace0e52c9db6ee7aef9de7187f Mon Sep 17 00:00:00 2001 From: "Raymond E. Pasco" Date: Mon, 20 Jan 2020 00:36:00 -0500 Subject: [PATCH] Fix timezone-dependent tests These tests fail depending on timezone and current time if the date differs from the UTC date. This was remedied by using `date -u`, which is POSIX. --- test/preamble | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/preamble b/test/preamble index 71f1372..8f9de2a 100755 --- a/test/preamble +++ b/test/preamble @@ -41,31 +41,31 @@ end 0 unset SOURCE_DATE_EPOCH begin "Writes the appropriate header" -scdoc </dev/null +scdoc </dev/null test(8) EOF end 0 begin "Preserves dashes" -scdoc </dev/null +scdoc </dev/null test-manual(8) EOF end 0 begin "Handles extra footer field" -scdoc </dev/null +scdoc </dev/null test-manual(8) "Footer" EOF end 0 begin "Handles both extra fields" -scdoc </dev/null +scdoc </dev/null test-manual(8) "Footer" "Header" EOF end 0 begin "Emits empty footer correctly" -scdoc </dev/null +scdoc </dev/null test-manual(8) "" "Header" EOF end 0