Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'jk/test-copy-bytes-fix' into maint
author
Junio C Hamano
<gitster@pobox.com>
Mon, 31 Jul 2017 20:51:05 +0000
(13:51 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 31 Jul 2017 20:51:06 +0000
(13:51 -0700)
A test fix.
* jk/test-copy-bytes-fix:
t: handle EOF in test_copy_bytes()
t/test-lib-functions.sh
patch
|
blob
|
history
raw
(from parent 1:
c6767f4
)
diff --git
a/t/test-lib-functions.sh
b/t/test-lib-functions.sh
index db622c3555dcbf7f66b45c05df5279b6db6b2a9e..50a9a1d1c49e719d0ee65435b05171747e065259 100644
(file)
--- 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;
}