diff options
author | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2001-09-01 16:50:14 +0200 |
---|---|---|
committer | Artur Bergman <sky@nanisky.com> | 2001-09-01 11:52:44 +0000 |
commit | 22e2837f3c603836f14e7ecdf873d47a2e95cda5 (patch) | |
tree | 54a85536fddab8e3fee7e49b07a78157036cd35d /t | |
parent | 5ef39e19a8ca2fc662c68c8a7d2d0f5af9e5c62d (diff) | |
download | perl-22e2837f3c603836f14e7ecdf873d47a2e95cda5.tar.gz |
, was t/op/incode.t breaks make minitest
Message-ID: <20010901145014.A691@rafael>
p4raw-id: //depot/perl@11810
Diffstat (limited to 't')
-rw-r--r-- | t/op/inccode.t | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/t/op/inccode.t b/t/op/inccode.t index 9173156bdf..95ee7c0094 100644 --- a/t/op/inccode.t +++ b/t/op/inccode.t @@ -8,18 +8,23 @@ BEGIN { } use File::Spec; -use File::Temp qw/tempfile/; use Test::More tests => 30; +my @tempfiles = (); + sub get_temp_fh { - my ($fh,$f) = tempfile("DummyModuleXXXX", DIR => File::Spec->curdir, - UNLINK => 1); + my $f = "DummyModule0000"; + 1 while -e ++$f; + push @tempfiles, $f; + open my $fh, ">$f" or die "Can't create $f: $!"; print $fh "package ".substr($_[0],0,-3)."; 1;"; close $fh; open $fh, $f or die "Can't open $f: $!"; return $fh; } +END { 1 while unlink @tempfiles } + sub get_addr { my $str = shift; $str =~ /(0x[0-9a-f]+)/i; |