summaryrefslogtreecommitdiff
path: root/t/run
diff options
context:
space:
mode:
authorAndreas König <a.koenig@mind.de>2001-12-29 22:42:37 +0100
committerJarkko Hietaniemi <jhi@iki.fi>2001-12-29 20:22:57 +0000
commitd1e4d418969ad3c5103f26f33d0abea5b1570935 (patch)
treea0d4611eb75d8f94e2d42291b944bf356edb8c70 /t/run
parentcb69f87a007debfba124ee7db6ef7f6a2ac42df7 (diff)
downloadperl-d1e4d418969ad3c5103f26f33d0abea5b1570935.tar.gz
cleaner close on tests, take 2
Message-ID: <m33d1tvjuq.fsf@anima.de> (except for the three DB_File patch fragments) p4raw-id: //depot/perl@13940
Diffstat (limited to 't/run')
-rw-r--r--t/run/switches.t6
1 files changed, 3 insertions, 3 deletions
diff --git a/t/run/switches.t b/t/run/switches.t
index 67331b63cd..f920f37ca7 100644
--- a/t/run/switches.t
+++ b/t/run/switches.t
@@ -77,7 +77,7 @@ INIT { print "block 3\n"; }
print "block 4\n";
END { print "block 5\n"; }
SWTEST
- close $f;
+ close $f or die "Could not close: $!";
$r = runperl(
switches => [ '-c' ],
progfile => $filename,
@@ -122,7 +122,7 @@ SKIP: {
#!perl -s
print $x
SWTEST
- close $f;
+ close $f or die "Could not close: $!";
$r = runperl(
switches => [ '-s' ],
progfile => $filename,
@@ -142,7 +142,7 @@ package swtest;
sub import { print map "<$_>", @_ }
1;
SWTESTPM
- close $f;
+ close $f or die "Could not close: $!";
$r = runperl(
switches => [ '-Mswtest' ],
prog => '1',