aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2019-06-27 11:15:31 -0700
committerRob Landley <rob@landley.net>2019-06-27 14:51:13 -0500
commitccf574ecc4dd8af8fd045a9d6bbaf5e8bf66a8d2 (patch)
tree84064eacf0d37d9e4909b876348ffb50c316339d /tests
parentc77018116cff4dbb9636f94ca54dffe75c5eaccb (diff)
downloadtoybox-ccf574ecc4dd8af8fd045a9d6bbaf5e8bf66a8d2.tar.gz
touch.test: add missing `TZ=utc`s.
I don't know why we fixed the other tests but not this one. Before this patch it's failing with/without TEST_HOST. After this patch, it passes both.
Diffstat (limited to 'tests')
-rw-r--r--tests/touch.test8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/touch.test b/tests/touch.test
index b010f7d3..8be231b7 100644
--- a/tests/touch.test
+++ b/tests/touch.test
@@ -64,10 +64,10 @@ testing "-t CCMMDDhhmm" \
"touch -t 2101231234 input && date +%Y-%m-%d:%H-%M-%S -r input" \
"$(date +%C)21-01-23:12-34-00\n" "" ""
-testing "-a" "touch -t 197101020304 walrus &&
- touch -t 197203040506 -a walrus && stat -c '%X %Y' walrus" \
- "68555160 31655040\n" "" ""
-testing "-m" "TZ=utc touch -t 197101020304 walrus &&
+testing "-a" "TZ=utc touch -t 197101020304 walrus &&
+ TZ=utc touch -t 197203040506 -a walrus && TZ=utc stat -c '%X %Y' walrus" \
+ "68533560 31633440\n" "" ""
+testing "-m" "TZ=utc touch -t 197101020304 walrus &&
TZ=utc touch -t 197203040506 -m walrus && TZ=utc stat -c '%X %Y' walrus" \
"31633440 68533560\n" "" ""
testing "-am" "TZ=utc touch -t 197101020304 walrus &&