aboutsummaryrefslogtreecommitdiffstats
path: root/test/strftime.awk
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2014-02-03 21:04:18 +0200
committerArnold D. Robbins <arnold@skeeve.com>2014-02-03 21:04:18 +0200
commit5a1e957a2cda7d1f0062454a1c6caa4c835bd201 (patch)
tree37b1d8e00e99146b57581b4720610dc4fe03c6b2 /test/strftime.awk
parent1855be261370b4489136bcf14536e0a2db3bd13d (diff)
downloadegawk-5a1e957a2cda7d1f0062454a1c6caa4c835bd201.tar.gz
egawk-5a1e957a2cda7d1f0062454a1c6caa4c835bd201.tar.bz2
egawk-5a1e957a2cda7d1f0062454a1c6caa4c835bd201.zip
Fix strftime test.
Diffstat (limited to 'test/strftime.awk')
-rw-r--r--test/strftime.awk10
1 files changed, 2 insertions, 8 deletions
diff --git a/test/strftime.awk b/test/strftime.awk
index 73cdc698..f1276c15 100644
--- a/test/strftime.awk
+++ b/test/strftime.awk
@@ -1,10 +1,6 @@
# strftime.awk ; test the strftime code
#
# input is the output of `date', see Makefile.in
-#
-# The mucking about with $0 and $NF is to avoid problems
-# on cygwin, where the timezone field is empty and there
-# are two consecutive blanks.
BEGIN {
maxtries = 10
@@ -13,7 +9,7 @@ BEGIN {
datecmd = DATECMD
if (datecmd == "")
datecmd = "date"
- fmt = "%a %b %d %H:%M:%S %Z %Y"
+ fmt = "%a %b %e %H:%M:%S %Z %Y"
# loop until before equals after, thereby protecting
# against a race condition where the seconds field might have
@@ -35,7 +31,5 @@ BEGIN {
}
}
print sd > "strftime.ok"
- $0 = after
- $NF = $NF
- print > OUTPUT
+ print after > OUTPUT
}