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 New Issue
Block a user