summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2001-09-01 16:50:14 +0200
committerArtur Bergman <sky@nanisky.com>2001-09-01 11:52:44 +0000
commit22e2837f3c603836f14e7ecdf873d47a2e95cda5 (patch)
tree54a85536fddab8e3fee7e49b07a78157036cd35d /t
parent5ef39e19a8ca2fc662c68c8a7d2d0f5af9e5c62d (diff)
downloadperl-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.t11
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;