summaryrefslogtreecommitdiff
path: root/t/op/defins.t
diff options
context:
space:
mode:
authorNick Ing-Simmons <nik@tiuk.ti.com>2001-06-13 19:02:48 +0000
committerNick Ing-Simmons <nik@tiuk.ti.com>2001-06-13 19:02:48 +0000
commit0a0ea7d6333a44d024998c9e7c6f04db8dc8fba7 (patch)
treeadc2e47f9657376db54ef15d61bd1f6e9c9fe80a /t/op/defins.t
parentfcf2db383b9625d65c84a8308e9be05a073bed3b (diff)
parentcd040c5e5361532c72bb6628047b8d6c97fee51b (diff)
downloadperl-0a0ea7d6333a44d024998c9e7c6f04db8dc8fba7.tar.gz
Integrate mainline. Storable fail has gone, insecure dependancy still there.
p4raw-id: //depot/perlio@10577
Diffstat (limited to 't/op/defins.t')
-rwxr-xr-xt/op/defins.t9
1 files changed, 5 insertions, 4 deletions
diff --git a/t/op/defins.t b/t/op/defins.t
index 33c74ea28e..06d48b601b 100755
--- a/t/op/defins.t
+++ b/t/op/defins.t
@@ -12,16 +12,17 @@ BEGIN {
}
$wanted_filename = $^O eq 'VMS' ? '0.' : '0';
+$saved_filename = $^O eq 'MacOS' ? ':0' : './0';
print "not " if $warns;
print "ok 1\n";
-open(FILE,">./0");
+open(FILE,">$saved_filename");
print FILE "1\n";
print FILE "0";
close(FILE);
-open(FILE,"<./0");
+open(FILE,"<$saved_filename");
my $seen = 0;
my $dummy;
while (my $name = <FILE>)
@@ -63,7 +64,7 @@ print "not " unless $seen;
print "ok 5\n";
close FILE;
-opendir(DIR,'.');
+opendir(DIR,($^O eq 'MacOS' ? ':' : '.'));
$seen = 0;
while (my $name = readdir(DIR))
{
@@ -116,7 +117,7 @@ while ($where{$seen} = glob('*'))
print "not " unless $seen;
print "ok 11\n";
-unlink("./0");
+unlink($saved_filename);
my %hash = (0 => 1, 1 => 2);