I'm not worried about hard-coding the *century* in the other test. We'll
be long dead before that's an issue, and it's easier to read this way.
---
 tests/date.test | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
From 68befc6a05c0da998d27083ec18b96f0e047e9ac Mon Sep 17 00:00:00 2001
From: Elliott Hughes <[email protected]>
Date: Wed, 13 Mar 2019 22:06:38 -0700
Subject: [PATCH] date: don't hard-code 2019 in the test.

I'm not worried about hard-coding the *century* in the other test. We'll
be long dead before that's an issue, and it's easier to read this way.
---
 tests/date.test | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/date.test b/tests/date.test
index 285d3dec..a317d35b 100644
--- a/tests/date.test
+++ b/tests/date.test
@@ -16,7 +16,7 @@ testing "-d @0x123 invalid" "TZ=$tz date -d @0x123 2>/dev/null || echo expected
 # All SKIP_HOST=1 because coreutils rejects POSIX format dates supplied to -d.
 # These expected values are from running on the host without -d (not as root!).
 SKIP_HOST=1 testing "-d MMDDhhmm" \
-        "TZ=$tz date -d 06021234 2>&1" "Sun Jun  2 12:34:00 CEST 2019\n" "" ""
+        "TZ=$tz date -d 06021234 2>&1" "Sun Jun  2 12:34:00 CEST $(date +%Y)\n" "" ""
 SKIP_HOST=1 testing "-d MMDDhhmmYY.SS" \
         "TZ=$tz date -d 1110143115.30 2>&1" "Tue Nov 10 14:31:30 CET 2015\n" "" ""
 # busybox thinks this is the year 603 (ISO time 0602-12-34 19:82 with out of range fields normalized).
-- 
2.21.0.360.g471c308f928-goog

_______________________________________________
Toybox mailing list
[email protected]
http://lists.landley.net/listinfo.cgi/toybox-landley.net

Reply via email to