Change to check if _POSIX_OPEN_MAX is 16 or 20, however the entire test is kind of...
[p5sagit/p5-mst-13.2.git] / lib / File / Spec / t / rel2abs2rel.t
CommitLineData
3bb16ffc 1#!./perl -w
2
3# Herein we apply abs2rel, rel2abs and canonpath against various real
4# world files and make sure it all actually works.
5
6BEGIN {
7 chdir 't';
8 @INC = '../lib';
9}
10
11use Test::More tests => 5;
12use File::Spec;
13
14# Here we make sure File::Spec can properly deal with executables.
15# VMS has some trouble with these.
16my $perl = File::Spec->rel2abs($^X);
17is( `$^X -le "print 'ok'"`, "ok\n", '`` works' );
18is( `$perl -le "print 'ok'"`, "ok\n", 'rel2abs($^X)' );
19
20$perl = File::Spec->canonpath($perl);
21is( `$perl -le "print 'ok'"`, "ok\n", 'canonpath on abs executable' );
22
23$perl = File::Spec->abs2rel($perl);
24is( `$perl -le "print 'ok'"`, "ok\n", 'abs2rel()' );
25
26$perl = File::Spec->canonpath($^X);
27is( `$perl -le "print 'ok'"`, "ok\n", 'canonpath on rel executable' );