From: Alex Riesen Date: Thu, 30 Oct 2008 10:20:27 +0000 (+0100) Subject: Use test-chmtime -v instead of perl in t5000 to get mtime of a file X-Git-Tag: v1.6.0.4~26 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=111539a3c75c22df7f1bbe242ce2f886b01d2491;p=git.git 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 Signed-off-by: Junio C Hamano --- diff --git a/t/t5000-tar-tree.sh b/t/t5000-tar-tree.sh index 0f27d7304..c942c8be8 100755 --- a/t/t5000-tar-tree.sh +++ b/t/t5000-tar-tree.sh @@ -90,7 +90,7 @@ test_expect_success \ 'validate file modification time' \ 'mkdir extract && "$TAR" xf b.tar -C extract a/a && - perl -e '\''print((stat("extract/a/a"))[9], "\n")'\'' >b.mtime && + test-chmtime -v +0 extract/a/a |cut -f 1 >b.mtime && echo "1117231200" >expected.mtime && diff expected.mtime b.mtime'