mirror of
https://github.com/git/git
synced 2024-08-28 12:09:19 +00:00
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>
This commit is contained in:
parent
0ea9ca07aa
commit
111539a3c7
|
@ -90,7 +90,7 @@ test_expect_success \
|
||||||
'validate file modification time' \
|
'validate file modification time' \
|
||||||
'mkdir extract &&
|
'mkdir extract &&
|
||||||
"$TAR" xf b.tar -C extract a/a &&
|
"$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 &&
|
echo "1117231200" >expected.mtime &&
|
||||||
diff expected.mtime b.mtime'
|
diff expected.mtime b.mtime'
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue