develooper Front page | perl.perl5.porters | Postings from July 2014

t/io/fs.t and $ENV{PWD} and b844a53a

Thread Next
Jarkko Hietaniemi
July 28, 2014 22:44
t/io/fs.t and $ENV{PWD} and b844a53a
Message ID:

stopped this

./perl -Ilib t/io/fs.t

from passing:

not ok 49 - rename on directories
# Failed test 49 - rename on directories at t/io/fs.t line 457
not ok 50 - rename on directories working
# Failed test 50 - rename on directories working at t/io/fs.t line 460
(further failure with Errno, but that won't happen with success on 
directory renaming)

Because: the temps are created in t/, not at the root, and the $wd in 
the test ends up being the root, not the t.

(Maybe there are difference in how shells set PWD?  For me with zsh
it's always the wd of the initial command.)

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About