Skip to content

Commit

Permalink
Fix test20 to be timezone independent
Browse files Browse the repository at this point in the history
  • Loading branch information
jca02266 committed Sep 23, 2022
1 parent abe5e91 commit 167f6ea
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions tests/lha-test20
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ for acode in $acodes
do
for scode in $scodes
do
$lha l --archive-kanji-code=$acode --system-kanji-code=$scode \
TZ= $lha l --archive-kanji-code=$acode --system-kanji-code=$scode \
$srcdir/lha-test20-$acode.lzh | \
sed -e '$d' -e 's/Jan 1 2000/Jan 2 2000/' | \
sed -e '$d' | \
diff - $srcdir/lha-test20-list-$scode.txt
check $? $LINENO
done
Expand Down
2 changes: 1 addition & 1 deletion tests/lha-test20-list-cap.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
PERMISSION UID GID SIZE RATIO STAMP NAME
---------- ----------- ------- ------ ------------ --------------------
-rw-rw-r-- 1000/1000 0 ****** Jan 2 2000 test-tmp-:93:fa:96{:8c:ea.file
-rw-rw-r-- 1000/1000 0 ****** Jan 1 2000 test-tmp-:93:fa:96{:8c:ea.file
---------- ----------- ------- ------ ------------ --------------------
2 changes: 1 addition & 1 deletion tests/lha-test20-list-euc.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
PERMISSION UID GID SIZE RATIO STAMP NAME
---------- ----------- ------- ------ ------------ --------------------
-rw-rw-r-- 1000/1000 0 ****** Jan 2 2000 test-tmp-���ܸ�.file
-rw-rw-r-- 1000/1000 0 ****** Jan 1 2000 test-tmp-���ܸ�.file
---------- ----------- ------- ------ ------------ --------------------
2 changes: 1 addition & 1 deletion tests/lha-test20-list-sjis.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
PERMISSION UID GID SIZE RATIO STAMP NAME
---------- ----------- ------- ------ ------------ --------------------
-rw-rw-r-- 1000/1000 0 ****** Jan 2 2000 test-tmp-���{��.file
-rw-rw-r-- 1000/1000 0 ****** Jan 1 2000 test-tmp-���{��.file
---------- ----------- ------- ------ ------------ --------------------
2 changes: 1 addition & 1 deletion tests/lha-test20-list-utf8.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
PERMISSION UID GID SIZE RATIO STAMP NAME
---------- ----------- ------- ------ ------------ --------------------
-rw-rw-r-- 1000/1000 0 ****** Jan 2 2000 test-tmp-日本語.file
-rw-rw-r-- 1000/1000 0 ****** Jan 1 2000 test-tmp-日本語.file
---------- ----------- ------- ------ ------------ --------------------

0 comments on commit 167f6ea

Please sign in to comment.