Browse Source

Merge branch 'jk/test-copy-bytes-fix' into maint

A test fix.

* jk/test-copy-bytes-fix:
  t: handle EOF in test_copy_bytes()
maint
Junio C Hamano 8 years ago
parent
commit
42dbdef1ca
  1. 1
      t/test-lib-functions.sh

1
t/test-lib-functions.sh

@ -999,6 +999,7 @@ test_copy_bytes () { @@ -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…
Cancel
Save