fragglet / lhasa

Free Software LHA implementation
http://fragglet.github.io/lhasa/
ISC License
80 stars 15 forks source link

Tests fail outside the Europe/London timezone #9

Closed fragglet closed 12 years ago

fragglet commented 12 years ago

The test suite has been written to run in the Europe timezone. This causes failures when trying to run in other timezones.

Reported output from Thomas Klausner:

make  check-TESTS
PASS: test-crc16
PASS: test-basic-reader
PASS: test-decoder
PASS: test-decompress
--- output/larc333/lz4.lzs-hdr.txt      2012-05-01 22:07:37.000000000 +0200
+++ /tmp/hdr.txt        2012-05-02 13:29:37.000000000 +0200
@@ -5,5 +5,5 @@
 header_level: 0
 os_type: 0
 crc: b6d5
-timestamp: 1273184274
+timestamp: 1273180674
 --
Output not as expected for larc333/lz4.lzs
FAIL: test-file-headers
--- output/lha_unix114i/subdir.lzh-l.txt        2012-05-01 22:07:37.000000000 +0200
+++ /tmp/tmp.txt        2012-05-02 13:29:38.000000000 +0200
@@ -1,7 +1,7 @@
 PERMSSN    UID  GID      SIZE  RATIO     STAMP           NAME
 ---------- ----------- ------- ------ ------------ --------------------
--rwx------  1000/1000        0 ****** Apr 24 20:31 subdir/
--r-xr-xr-x  1000/1000        0 ****** Apr 24 20:31 subdir/subdir2/
+-rwx------  1000/1000        0 ****** Apr 24 21:31 subdir/
+-r-xr-xr-x  1000/1000        0 ****** Apr 24 21:31 subdir/subdir2/
 -rw-r--r--  1000/1000       12 100.0% Jan  1  2010 subdir/subdir2/hello.txt
 ---------- ----------- ------- ------ ------------ --------------------
 Total         3 files      12 100.0% Jan  1  2000
Output not as expected for lha l archives/lha_unix114i/subdir.lzh
FAIL: test-list-output
PASS: test-crc-output
PASS: test-dry-run
Timestamp mismatch for larc333/lz4.lzs
gpl-2.gz: 1273180674 != 1273184274
FAIL: test-extract
==================================
3 of 9 tests failed
Please report to fraggle@gmail.com
==================================
*** Error code 1
fragglet commented 12 years ago

Fixed!