diff options
author | Eli Zaretskii <eliz@gnu.org> | 2014-01-28 18:55:11 +0200 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2014-01-28 18:55:11 +0200 |
commit | 6520f31b24575ce7308a8b42c8b617568db6c4d8 (patch) | |
tree | 177f4336ee16ceb219e69503e306ef8238c20ccd /test/strftime.awk | |
parent | c5530f370ba70004c2e0bbc712038eaacfd6b2ce (diff) | |
download | egawk-6520f31b24575ce7308a8b42c8b617568db6c4d8.tar.gz egawk-6520f31b24575ce7308a8b42c8b617568db6c4d8.tar.bz2 egawk-6520f31b24575ce7308a8b42c8b617568db6c4d8.zip |
Fix the test suite for the pc ports.
test/strftime.awk: If DATECMD variable is non-empty, use it instead
of the literal "date" as the 'date'-like command.
pc/Makefile.tst (strftime): Pass the value of 'date' command
through the DATECMD variable.
(readdir): Adapt to changes in test/readdir0.awk.
Diffstat (limited to 'test/strftime.awk')
-rw-r--r-- | test/strftime.awk | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/strftime.awk b/test/strftime.awk index a52957f0..73cdc698 100644 --- a/test/strftime.awk +++ b/test/strftime.awk @@ -8,7 +8,11 @@ BEGIN { maxtries = 10 - datecmd = "date" + # On DOS/Windows, DATECMD is set by the Makefile to point to + # Unix-like 'date' command. + datecmd = DATECMD + if (datecmd == "") + datecmd = "date" fmt = "%a %b %d %H:%M:%S %Z %Y" # loop until before equals after, thereby protecting |