This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Fix magic.t's expectation for $^X under minitest when the OS makes $^X absolute
authorNicholas Clark <nick@ccl4.org>
Fri, 25 Feb 2011 14:01:43 +0000 (14:01 +0000)
committerNicholas Clark <nick@ccl4.org>
Sun, 6 Mar 2011 09:13:49 +0000 (09:13 +0000)
commit0f77baf62a0c7e94e448aeceaad28c256c525344
treee9bf8757248edeb91f18b5aaec425526359f2ede
parent519ecd2cabd84d9e11d438f376f05f932f9bc5cc
Fix magic.t's expectation for $^X under minitest when the OS makes $^X absolute

Under minitest, t/perl is a symlink to ../perl. Test scripts are invoked with
./perl. When $Config{d_procselfexe} is undefined, $^X is still ./perl.
When it is defined, the OS resolves it to the absolute path .../miniperl.
Fix t/op/magic.t to be aware of this. Previously it was working for all cases
other than [$Config{d_procselfexe} is defined] and [make minitest] and
[perl does not exist].
t/op/magic.t