Still broken with 0.11. As shown above, the contents of $dir (line:317)
for the broken test is '\\'. So, $dir eq P::C::foreign_dir('Unix','/')
doesn't work (it returns '/', the same as a hardcoded '/').
On 月曜日 12月 25 13:57:30 2006, ISHIGAKI wrote:
Show quoted text> It should be '\\' on Win32. Attached patch would fix the problem.
>
> ----
>
> C:\perl\.cpan\build\Directory-Scratch-0.10>prove -lv t/unit/l
> s.t
> t/unit/ls....1..13
> ok 1 - created $tmp
> ok 2 - foo
> ok 3 - bar/baz
> ok 4 - bar/quux
> ok 5 - bar/baz/quux
> ok 6 - got 5 files under /
> ok 7 - check that paths agree
> ok 8 - got 5 files under /
> not ok 9 - check that paths agree
>
> # Failed test 'check that paths agree'
> # at t/unit/ls.t line 33.
> # Structures begin differing at:
> # $got->[0] = '\bar'
> # $expected->[0] = 'bar'
> ok 10 - no fake files [scalar]
> ok 11 - no fake files [list]
> ok 12 - single file = list
> ok 13 - got bar/baz/quux in bar/baz
> # Looks like you failed 1 test of 13.
> dubious
> Test returned status 1 (wstat 256, 0x100)
> DIED. FAILED test 9
> Failed 1/13 tests, 92.31% okay
> Failed Test Stat Wstat Total Fail List of Failed
> ----------------------------------------------------------------------
--
Show quoted text> -------
> t/unit/ls.t 1 256 13 1 9
> Failed 1/1 test scripts. 1/13 subtests failed.
> Files=1, Tests=13, 2 wallclock secs ( 0.00 cusr + 0.00 csys = 0.00
> CPU)
> Failed 1/1 test programs. 1/13 subtests failed.