From 9bdbf65328dc8505461460cd0afb0ca69fc0cf29 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sat, 14 Nov 2026 17:09:34 -0600 Subject: [PATCH] The unzip tests care about time zone. --- tests/unzip.test | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) mode change 100755 => 100644 tests/unzip.test diff --git a/tests/unzip.test b/tests/unzip.test old mode 100755 new mode 100644 index 7e4c5bc2..d11803f6 --- a/tests/unzip.test +++ b/tests/unzip.test @@ -10,12 +10,14 @@ # table, meaning that any test that makes assumptions about iteration order # will fail on Android. +export TZ=utc + # unzip -l testing "-l" "unzip -l $FILES/zip/example.zip d1/d2/x.txt && [ ! -f d1/d2/x.txt ] && echo okay" "\ Archive: $FILES/zip/example.zip\n\ Length Date Time Name\n\ --------- ---------- ----- ----\n\ - 1024 2017-06-04 08:45 d1/d2/x.txt\n\ + 1024 2017-06-04 15:45 d1/d2/x.txt\n\ --------- -------\n\ 1024 1 file\n\ okay\n" "" "" @@ -24,7 +26,7 @@ okay\n" "" "" testing "-lq" "unzip -lq $FILES/zip/example.zip d1/d2/x.txt && [ ! -f d1/d2/x.txt ] && echo okay" "\ Length Date Time Name\n\ --------- ---------- ----- ----\n\ - 1024 2017-06-04 08:45 d1/d2/x.txt\n\ + 1024 2017-06-04 15:45 d1/d2/x.txt\n\ --------- -------\n\ 1024 1 file\n\ okay\n" "" "" @@ -34,7 +36,7 @@ testing "-lv" "unzip -lv $FILES/zip/example.zip d1/d2/x.txt && [ ! -f d1/d2/file Archive: $FILES/zip/example.zip\n\ Length Method Size Cmpr Date Time CRC-32 Name\n\ -------- ------ ------- ---- ---------- ----- -------- ----\n\ - 1024 Defl:N 11 99% 2017-06-04 08:45 48d7f063 d1/d2/x.txt\n\ + 1024 Defl:N 11 99% 2017-06-04 15:45 48d7f063 d1/d2/x.txt\n\ -------- ------- --- -------\n\ 1024 11 99% 1 file\n\ okay\n" "" "" @@ -44,7 +46,7 @@ testing "-v" "unzip -v $FILES/zip/example.zip d1/d2/x.txt && [ ! -f d1/d2/file ] Archive: $FILES/zip/example.zip\n\ Length Method Size Cmpr Date Time CRC-32 Name\n\ -------- ------ ------- ---- ---------- ----- -------- ----\n\ - 1024 Defl:N 11 99% 2017-06-04 08:45 48d7f063 d1/d2/x.txt\n\ + 1024 Defl:N 11 99% 2017-06-04 15:45 48d7f063 d1/d2/x.txt\n\ -------- ------- --- -------\n\ 1024 11 99% 1 file\n\ okay\n" "" "" -- 2.39.5