summaryrefslogtreecommitdiff
path: root/tests/sort
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1996-09-30 02:39:46 +0000
committerJim Meyering <jim@meyering.net>1996-09-30 02:39:46 +0000
commitccf556a616bef9134db4c22e2d94bd8b3dfeca71 (patch)
treeea9ecf88fdd62b80a7e06b638bc6c572ebc84229 /tests/sort
parentd96a2d9e144f6b3fabfad1e54c532551aacde633 (diff)
downloadcoreutils-ccf556a616bef9134db4c22e2d94bd8b3dfeca71.tar.xz
Die if close fails.
Diffstat (limited to 'tests/sort')
-rw-r--r--tests/sort/build-script.pl4
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";