mirror of
https://github.com/git/git
synced 2024-08-28 12:09:19 +00:00
Merge branch 'jk/test-copy-bytes-fix' into maint
A test fix. * jk/test-copy-bytes-fix: t: handle EOF in test_copy_bytes()
This commit is contained in:
commit
42dbdef1ca
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue