diff options
author | Junio C Hamano <gitster@pobox.com> | 2017-07-31 23:51:05 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-07-31 23:51:06 +0300 |
commit | 42dbdef1cac298c3faaab389b67a41005022fdfa (patch) | |
tree | 8ffc0063c316b8ae8ba4d8aefc32428533d435de | |
parent | c6767f45e3e013d34caa63797ef30f6c22c9dd34 (diff) | |
parent | f7f6dc340ed4eb2bddc41993e112f8f18fcc1598 (diff) |
Merge branch 'jk/test-copy-bytes-fix' into maint
A test fix.
* jk/test-copy-bytes-fix:
t: handle EOF in test_copy_bytes()
-rw-r--r-- | t/test-lib-functions.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/t/test-lib-functions.sh b/t/test-lib-functions.sh index db622c3555..50a9a1d1c4 100644 --- a/t/test-lib-functions.sh +++ b/t/test-lib-functions.sh @@ -999,6 +999,7 @@ test_copy_bytes () { my $s; my $nread = sysread(STDIN, $s, $len); die "cannot read: $!" unless defined($nread); + last unless $nread; print $s; $len -= $nread; } |