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

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

Thread Next
From:
Jarkko Hietaniemi
Date:
July 28, 2014 22:44
Subject:
t/io/fs.t and $ENV{PWD} and b844a53a
Message ID:
53D6D228.8070508@iki.fi
This

http://perl5.git.perl.org/perl.git/commit/b844a53a7d234f06bcf81ebea25299efc781c526?f=t/io/fs.t

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


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About