}
use Config;
-use File::Spec::Functions;
my $Is_VMSish = ($^O eq 'VMS');
`rm -f $tmpdir 2>/dev/null; mkdir $tmpdir 2>/dev/null`;
}
-chdir catdir(curdir(), $tmpdir);
+chdir $tmpdir;
`/bin/rm -rf a b c x` if -x '/bin/rm';
}
use strict;
-use File::Spec;
-open F, File::Spec->curdir and sysread F, $_, 1;
+open F, '.' and sysread F, $_, 1;
my $err = $! + 0;
close F;
skip "you can read directories as plain files", 2 unless( $err );
$!=0;
- open F, File::Spec->curdir and $_=<F>;
+ open F, '.' and $_=<F>;
ok( $!==$err && !defined($_) => 'readline( DIRECTORY )' );
close F;
$!=0;
{ local $/;
- open F, File::Spec->curdir and $_=<F>;
+ open F, '.' and $_=<F>;
ok( $!==$err && !defined($_) => 'readline( DIRECTORY ) slurp mode' );
close F;
}
}
require './test.pl';
-use File::Spec::Functions;
# Test '-x'
print runperl( switches => ['-x'],
- progfile => catfile(curdir(), 'run', 'switchx.aux') );
+ progfile => 'run/switchx.aux' );
# Test '-xdir'
-print runperl( switches => ['-x' . catfile(curdir(), 'run')],
- progfile => catfile(curdir(), 'run', 'switchx2.aux'),
+print runperl( switches => ['-x./run'],
+ progfile => 'run/switchx2.aux',
args => [ 3 ] );
# EOF
-use File::Spec;
-
require "test.pl";
sub unidump {
},
)} @funcs;
- my $file = File::Spec->catfile(File::Spec->catdir(File::Spec->updir,
- "lib", "unicore", "To"),
- "$base.pl");
+ my $file = "../lib/unicore/To/$base.pl";
my $simple = do $file or die $@;
my %simple;
for my $i (split(/\n/, $simple)) {
binmode *STDOUT, ":utf8";
-use File::Spec;
our $TODO;
plan("no_plan");
# Read in the official case folding definitions.
-my $CF = File::Spec->catfile(File::Spec->catdir(File::Spec->updir,
- "lib", "unicore"),
- "CaseFolding.txt");
+my $CF = '../lib/unicore/CaseFolding.txt';
die qq[$0: failed to open "$CF": $!\n] if ! open(my $fh, "<", $CF);