projects
/
platform
/
upstream
/
perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d13ea15
)
Now is Solaris if you start the t/perl in the t/
author
Jarkko Hietaniemi
<jhi@iki.fi>
Sun, 25 Nov 2001 04:20:02 +0000
(
04:20
+0000)
committer
Jarkko Hietaniemi
<jhi@iki.fi>
Sun, 25 Nov 2001 04:20:02 +0000
(
04:20
+0000)
as "./perl", the $^X will be "../perl", not "./perl".
p4raw-id: //depot/perl@13255
t/lib/1_compile.t
patch
|
blob
|
history
diff --git
a/t/lib/1_compile.t
b/t/lib/1_compile.t
index
51d4d6a
..
af2c168
100644
(file)
--- a/
t/lib/1_compile.t
+++ b/
t/lib/1_compile.t
@@
-1,7
+1,13
@@
#!./perl
BEGIN {
- chdir '..' if -d '../pod' && -d '../t';
+ if (-d '../pod' && -d '../t') {
+ require File::Spec;
+ my ($v,$d,$f) = File::Spec->splitpath($^X);
+ $^X = File::Spec->catfile(File::Spec->curdir, $f)
+ if $^X eq File::Spec->catfile(File::Spec->updir, $f);
+ chdir '..';
+ }
@INC = 'lib';
}