summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig A. Berry <craigberry@mac.com>2005-01-23 08:23:17 -0600
committerH.Merijn Brand <h.m.brand@xs4all.nl>2005-01-24 15:10:55 +0000
commit4e7ee149460a1e80f981e3148f5aa709e27ebacb (patch)
tree3854a206443001d6bc318f386f25aa95190f85b2
parent27bcc0a7e6b15b7b0d6f632d5f31918abd005ef4 (diff)
downloadperl-4e7ee149460a1e80f981e3148f5aa709e27ebacb.tar.gz
assorted tempfile clean-up in the test suite
From: "Craig A. Berry" <craigberry@mac.com> Message-ID: <41F407B5.7020106@mac.com> p4raw-id: //depot/perl@23874
-rw-r--r--lib/Test/Simple/t/reset.t2
-rwxr-xr-xt/io/fs.t2
-rwxr-xr-xt/io/tell.t2
3 files changed, 3 insertions, 3 deletions
diff --git a/lib/Test/Simple/t/reset.t b/lib/Test/Simple/t/reset.t
index bc1546bee6..320fd86a53 100644
--- a/lib/Test/Simple/t/reset.t
+++ b/lib/Test/Simple/t/reset.t
@@ -27,7 +27,7 @@ my $tmpfile = 'foo.tmp';
$tb->output($tmpfile);
$tb->failure_output($tmpfile);
$tb->todo_output($tmpfile);
-END { unlink $tmpfile }
+END { 1 while unlink $tmpfile }
# This won't print since we just sent output off to oblivion.
$tb->ok(0, "And a failure for fun");
diff --git a/t/io/fs.t b/t/io/fs.t
index eb305a93e8..30423f1d28 100755
--- a/t/io/fs.t
+++ b/t/io/fs.t
@@ -373,4 +373,4 @@ if ($^O eq 'VMS') {
ok(-d 'tmp1', "rename on directories working");
# need to remove 'tmp' if rename() in test 28 failed!
-END { rmdir 'tmp1'; rmdir 'tmp'; unlink "Iofs.tmp"; }
+END { rmdir 'tmp1'; rmdir 'tmp'; 1 while unlink "Iofs.tmp"; }
diff --git a/t/io/tell.t b/t/io/tell.t
index 1e1f661cd1..dcb4ee9a29 100755
--- a/t/io/tell.t
+++ b/t/io/tell.t
@@ -100,7 +100,7 @@ if (tell(ether) == -1) { print "ok 23\n"; } else { print "not ok 23\n"; }
my $written = "tell_write.txt";
-END { unlink($written) }
+END { 1 while unlink($written) }
close($tst);
open($tst,">$written") || die "Cannot open $written:$!";