diff options
-rw-r--r-- | TestInit.pm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/TestInit.pm b/TestInit.pm index 3d03ed82e1..c626965a03 100644 --- a/TestInit.pm +++ b/TestInit.pm @@ -63,8 +63,9 @@ if (-f 't/TEST' && -f 'MANIFEST' && -d 'lib' && -d 'ext') { # Looks like a test in ext. chdir $1 or die "Can't chdir '$1': $!"; new_inc(@up_2_t); - $^X =~ s!^\./!../../perl!; - $^X =~ s!^\.\\!..\\..\\perl!; + set_opt(@up_2_t); + $^X =~ s!^\./!../../!; + $^X =~ s!^\.\\!..\\..\\!; } else { chdir 't' or die "Can't chdir 't': $!"; new_inc('../lib'); |