Weird behaviour of trace mode on p5-file-path
Mojca Miklavec
mojca at macports.org
Tue Jan 13 01:01:15 PST 2015
Hello,
I'm experiencing a weird behaviour.
If I run
sudo port -v test p5.20-file-path
it succeeds, but if I try
sudo port -v -t test p5.20-file-path
it fails (most probably due to line 24 in t/Path.t). What I don't
understand is the difference between the normal and the trace mode.
Does anyone have any ideas?
(Original ticket was https://trac.macports.org/ticket/46455)
The part that is causing problems:
for my $perm (0111,0777) {
my $path = catdir(curdir(), "mhx", "bar");
mkpath($path);
chmod $perm, "mhx", $path;
my $oct = sprintf('0%o', $perm);
ok(-d "mhx", "mkdir parent dir $oct");
ok(-d $path, "mkdir child dir $oct");
rmtree("mhx");
ok(! -e "mhx", "mhx does not exist $oct");
}
Mojca
More information about the macports-dev
mailing list