diff options
author | Junio C Hamano <gitster@pobox.com> | 2013-09-10 01:50:39 +0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-09-10 01:50:39 +0400 |
commit | a23274e127fdb1674361271f14f7269f0a019cc2 (patch) | |
tree | ced6c65604f7d505718cc282d4797ec657c083c4 /t | |
parent | b0d974d6d94968a367909b2259bde9c6d4729298 (diff) | |
parent | a487916dd51cd0e8949c1b739cb0a6a61ee03363 (diff) |
Merge branch 'sp/clip-read-write-to-8mb'
Send a large request to read(2)/write(2) as a smaller but still
reasonably large chunks, which would improve the latency when the
operation needs to be killed and incidentally works around broken
64-bit systems that cannot take a 2GB write or read in one go.
* sp/clip-read-write-to-8mb:
Revert "compat/clipped-write.c: large write(2) fails on Mac OS X/XNU"
xread, xwrite: limit size of IO to 8MB
Diffstat (limited to 't')
-rwxr-xr-x | t/t0021-conversion.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/t/t0021-conversion.sh b/t/t0021-conversion.sh index e50f0f742f..b92e6cb046 100755 --- a/t/t0021-conversion.sh +++ b/t/t0021-conversion.sh @@ -190,4 +190,18 @@ test_expect_success 'required filter clean failure' ' test_must_fail git add test.fc ' +test -n "$GIT_TEST_LONG" && test_set_prereq EXPENSIVE + +test_expect_success EXPENSIVE 'filter large file' ' + git config filter.largefile.smudge cat && + git config filter.largefile.clean cat && + for i in $(test_seq 1 2048); do printf "%1048576d" 1; done >2GB && + echo "2GB filter=largefile" >.gitattributes && + git add 2GB 2>err && + ! test -s err && + rm -f 2GB && + git checkout -- 2GB 2>err && + ! test -s err +' + test_done |