diff options
author | Jim Meyering <jim@meyering.net> | 1996-09-30 02:39:46 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1996-09-30 02:39:46 +0000 |
commit | ccf556a616bef9134db4c22e2d94bd8b3dfeca71 (patch) | |
tree | ea9ecf88fdd62b80a7e06b638bc6c572ebc84229 | |
parent | d96a2d9e144f6b3fabfad1e54c532551aacde633 (diff) | |
download | coreutils-ccf556a616bef9134db4c22e2d94bd8b3dfeca71.tar.xz |
Die if close fails.
-rw-r--r-- | tests/sort/build-script.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/sort/build-script.pl b/tests/sort/build-script.pl index 11db4eada..d7474f5a9 100644 --- a/tests/sort/build-script.pl +++ b/tests/sort/build-script.pl @@ -42,10 +42,10 @@ foreach $test_vector (@Test::t) open (IN, ">$in") || die "$0: $in: $!\n"; print IN $input; - close (IN); + close (IN) || die "$0: $in: $!\n"; open (EXP, ">$exp_name") || die "$0: $in: $!\n"; print EXP $expected; - close (EXP); + close (EXP) || die "$0: $exp_name: $!\n"; my $err_output = "t$test_name.err"; my $cmd = "\$xx $flags \$srcdir/$in > $out 2> $err_output"; |