summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2016-08-08 21:48:33 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-08-08 21:48:33 (GMT)
commit3819fb9ab4c80e5fea3a7b31703a3884f47c8a83 (patch)
treedc27a1922cf29e845dccc4bdfe00fa03025d4fe0 /t
parentc6b0597e9ac7277e148e2fd4d7615ac6e0bfb661 (diff)
parent54956df9bc1b9ba7381a7e2d774336005516c668 (diff)
downloadgit-3819fb9ab4c80e5fea3a7b31703a3884f47c8a83.zip
git-3819fb9ab4c80e5fea3a7b31703a3884f47c8a83.tar.gz
git-3819fb9ab4c80e5fea3a7b31703a3884f47c8a83.tar.bz2
Merge branch 'js/t4130-rename-without-ino'
Windows port was failing some tests in t4130, due to the lack of inum in the returned values by its lstat(2) emulation. * js/t4130-rename-without-ino: t4130: work around Windows limitation
Diffstat (limited to 't')
-rwxr-xr-xt/t4130-apply-criss-cross-rename.sh10
1 files changed, 7 insertions, 3 deletions
diff --git a/t/t4130-apply-criss-cross-rename.sh b/t/t4130-apply-criss-cross-rename.sh
index d173acd..f8a313b 100755
--- a/t/t4130-apply-criss-cross-rename.sh
+++ b/t/t4130-apply-criss-cross-rename.sh
@@ -13,9 +13,13 @@ create_file() {
}
test_expect_success 'setup' '
- create_file file1 "File1 contents" &&
- create_file file2 "File2 contents" &&
- create_file file3 "File3 contents" &&
+ # Ensure that file sizes are different, because on Windows
+ # lstat() does not discover inode numbers, and we need
+ # other properties to discover swapped files
+ # (mtime is not always different, either).
+ create_file file1 "some content" &&
+ create_file file2 "some other content" &&
+ create_file file3 "again something else" &&
git add file1 file2 file3 &&
git commit -m 1
'