diff options
author | Nicholas Clark <nick@ccl4.org> | 2013-03-06 12:40:01 +0100 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2013-03-07 12:14:14 +0100 |
commit | 96d268e2f48e69b4cb65326df6690ffc21120f3c (patch) | |
tree | 3a3cf3b55594de05dc73415aa933849f64c3125a /lib/dumpvar.t | |
parent | ec3fc3c1a6073e4315330c1e2a9df8a0d5d9fdb3 (diff) | |
download | perl-96d268e2f48e69b4cb65326df6690ffc21120f3c.tar.gz |
t/lib/common.pl should use absolute paths in @INC
t/lib/common.pl needs to run test files within a subdirectory, and hence
needs change directory into it. Changing a directory poses a problem when
running the tests, because @INC is typically '../lib'. The fix for this had
been to prepend '../../lib' to @INC, which is the correct relative path
while in the subdirectory.
However, the END block changes directory upwards (so that it can delete the
temporary directory), and in the process of deletion may end up lazy-loading
more modules. This will end up searching in ../lib first (ie outside the
build directory), which is wrong, and will cause problems if a directory lib/
exists up one level with files of the expected names (eg a lib/ directory
from a different version of Perl).
Problem identified and diagnosed by Daniel Dragan in RT #116971.
Diffstat (limited to 'lib/dumpvar.t')
0 files changed, 0 insertions, 0 deletions