summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>2002-04-22 08:37:17 +0000
committerGurusamy Sarathy <gsar@cpan.org>2002-04-22 08:37:17 +0000
commit0ec158f4b0db050abb15876df15f5f883540cfd9 (patch)
tree65a29c8748f938194d687e43d98d4720da79686d /t
parent139cf11b10fe82ec7be04ae7d145dc452057d38b (diff)
downloadperl-0ec158f4b0db050abb15876df15f5f883540cfd9.tar.gz
clean up after stray test file littering
NOTE: PerlIO/t/via.t leaves behind a via$$ file on windows when it seems that it shouldn't (looks like a handle leak in PerlIO to me) p4raw-id: //depot/perl@16065
Diffstat (limited to 't')
-rw-r--r--t/lib/warnings/perlio3
-rw-r--r--t/win32/system.t3
2 files changed, 4 insertions, 2 deletions
diff --git a/t/lib/warnings/perlio b/t/lib/warnings/perlio
index 7be021948c..63279ee0fe 100644
--- a/t/lib/warnings/perlio
+++ b/t/lib/warnings/perlio
@@ -29,6 +29,7 @@ no warnings 'layer';
open(F, ">:-aa", "bb");
use warnings 'layer';
open(F, ">:-aa", "bb");
+close F;
EXPECT
perlio: invalid separator character '-' in layer specification list -aa at - line 6.
########
@@ -38,6 +39,7 @@ no warnings 'layer';
open(F, ">:aa(", "bb");
use warnings 'layer';
open(F, ">:aa(", "bb");
+close F;
EXPECT
perlio: argument list not closed for layer "aa(" at - line 6.
########
@@ -50,6 +52,7 @@ no warnings 'layer';
open(F, ">:xyz", "bb");
use warnings 'layer';
open(F, ">:xyz", "bb");
+close F;
END { 1 while unlink "bb" } # KEEP THIS WITH THE LAST TEST.
EXPECT
perlio: unknown layer "xyz".
diff --git a/t/win32/system.t b/t/win32/system.t
index a0266da5ef..bd65412564 100644
--- a/t/win32/system.t
+++ b/t/win32/system.t
@@ -76,8 +76,7 @@ close $F;
# build the executable
chdir($testdir);
END {
-# chdir($cwd);
-# rmtree($testdir);
+ chdir($cwd) && rmtree("$cwd/$testdir") if -d "$cwd/$testdir";
}
if (open(my $EIN, "$cwd/op/${exename}_exe.uu")) {
print "# Unpacking $exename.exe\n";