aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2019-04-22 16:49:07 -0500
committerRob Landley <rob@landley.net>2019-04-22 16:49:07 -0500
commitd409fb40129f2ea4a46f5e15d027ce7262c3df4f (patch)
tree8d7a43712f12411a36d4f4806c3024584f8d492f
parent580a88f1a60c7f990cca703f54b8815fca1e918e (diff)
downloadtoybox-d409fb40129f2ea4a46f5e15d027ce7262c3df4f.tar.gz
Switch some SKIP_HOST tests to toyonly. (The host could be toybox.)
-rw-r--r--tests/date.test18
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/date.test b/tests/date.test
index 5c490b02..3be10425 100644
--- a/tests/date.test
+++ b/tests/date.test
@@ -13,17 +13,17 @@ testing "-d @0" "TZ=$tz date -d @0" "Thu Jan 1 01:00:00 CET 1970\n" "" ""
testing "-d @0x123 invalid" "TZ=$tz date -d @0x123 2>/dev/null || echo expected error" "expected error\n" "" ""
# POSIX format with 2- and 4-digit years.
-# All SKIP_HOST=1 because coreutils rejects POSIX format dates supplied to -d.
+# All toyonly 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" "Sun Jun 2 12:34:00 CEST $(date +%Y)\n" "" ""
-SKIP_HOST=1 testing "-d MMDDhhmmYY.SS" \
- "TZ=$tz date -d 1110143115.30" "Tue Nov 10 14:31:30 CET 2015\n" "" ""
+toyonly testing "-d MMDDhhmm" \
+ "TZ=$tz date -d 06021234" "Sun Jun 2 12:34:00 CEST $(date +%Y)\n" "" ""
+toyonly testing "-d MMDDhhmmYY.SS" \
+ "TZ=$tz date -d 1110143115.30" "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).
-SKIP_HOST=1 testing "-d MMDDhhmmCCYY" \
- "TZ=$tz date -d 060212341982" "Wed Jun 2 12:34:00 CEST 1982\n" "" ""
-SKIP_HOST=1 testing "-d MMDDhhmmCCYY.SS" \
- "TZ=$tz date -d 111014312015.30" "Tue Nov 10 14:31:30 CET 2015\n" "" ""
+toyonly testing "-d MMDDhhmmCCYY" \
+ "TZ=$tz date -d 060212341982" "Wed Jun 2 12:34:00 CEST 1982\n" "" ""
+toyonly testing "-d MMDDhhmmCCYY.SS" \
+ "TZ=$tz date -d 111014312015.30" "Tue Nov 10 14:31:30 CET 2015\n" "" ""
# ISO date format.
testing "-d 1980-01-02" "TZ=$tz date -d 1980-01-02" "Wed Jan 2 00:00:00 CET 1980\n" "" ""