@matheusbsbs / matheus-bagliano / commits / 111539a3c7
Fork 0

Use test-chmtime -v instead of perl in t5000 to get mtime of a file

The test was broken on admittedly broken combination of Windows, Cygwin, and ActiveState Perl. Signed-off-by: Alex Riesen <ariesen@harmanbecker.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Alex Riesen committed Oct 30, 2008 at 11:20 UTC 111539a3c75c22df7f1bbe242ce2f886b01d2491
1 file changed +1 -1
t/t5000-tar-tree.sh
+1 -1
@@ -90,7 +90,7 @@ test_expect_success \
90 'validate file modification time' \
91 'mkdir extract &&
92 "$TAR" xf b.tar -C extract a/a &&
93 - perl -e '\''print((stat("extract/a/a"))[9], "\n")'\'' >b.mtime &&
93 + test-chmtime -v +0 extract/a/a |cut -f 1 >b.mtime &&
94 echo "1117231200" >expected.mtime &&
95 diff expected.mtime b.mtime'
96