From f092f83bcfe5e6ec648c4991ad2f6cf5ea23bb0e Mon Sep 17 00:00:00 2001 From: "Raymond E. Pasco" Date: Mon, 20 Jan 2020 00:36:01 -0500 Subject: [PATCH] Fix `date --date` dependent test This test depends on a nonportable option for date(1). I am not sure that there is a good portable way to do this, so I just directly included the seconds since epoch that it would have computed. We're testing scdoc, not testing the local system's date command. --- test/preamble | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/preamble b/test/preamble index 8f9de2a..1634877 100755 --- a/test/preamble +++ b/test/preamble @@ -70,8 +70,7 @@ test-manual(8) "" "Header" EOF end 0 -export TZ=UTC -export SOURCE_DATE_EPOCH=$(date --date="2017-12-09 23:18:57" +'%s') +export SOURCE_DATE_EPOCH=1512861537 begin "Supports \$SOURCE_DATE_EPOCH" scdoc </dev/null