develooper Front page | perl.perl5.porters | Postings from April 2018

[perl #133141] cwd_enoent.t fails on DragonFly BSD

Thread Next
From:
Tomasz Konojacki
Date:
April 22, 2018 21:58
Subject:
[perl #133141] cwd_enoent.t fails on DragonFly BSD
Message ID:
rt-4.0.24-14002-1524434317-1401.133141-75-0@perl.org
# New Ticket Created by  Tomasz Konojacki 
# Please include the string:  [perl #133141]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=133141 >


On the latest blead:

---

% ./perl -I ../lib ../dist/PathTools/t/cwd_enoent.t
1..8
not ok 1 - regular getcwd result on non-existent directory
#   Failed test 'regular getcwd result on non-existent directory'
#   at ../dist/PathTools/t/cwd_enoent.t line 34.
#          got: '/tmp/LPDQmQvz61/testdir'
#     expected: undef
not ok 2 - regular getcwd errno on non-existent directory
#   Failed test 'regular getcwd errno on non-existent directory'
#   at ../dist/PathTools/t/cwd_enoent.t line 35.
#          got: '0'
#     expected: '2'
not ok 3 - regular abs_path result on non-existent directory
#   Failed test 'regular abs_path result on non-existent directory'
#   at ../dist/PathTools/t/cwd_enoent.t line 39.
#          got: '/tmp/LPDQmQvz61/testdir'
#     expected: undef
not ok 4 - regular abs_path errno on non-existent directory
#   Failed test 'regular abs_path errno on non-existent directory'
#   at ../dist/PathTools/t/cwd_enoent.t line 40.
#          got: '0'
#     expected: '2'
ok 5 - perl getcwd result on non-existent directory
ok 6 - perl getcwd errno on non-existent directory
ok 7 - perl abs_path result on non-existent directory
ok 8 - perl abs_path errno on non-existent directory
# Looks like you failed 4 tests of 8.

---

The problem is similar to #132733, getcwd() doesn't fail on non-existent
directories on DragonFly BSD.

I'm sure it's a bug in DragonFly, but I think we should skip failing
tests until it's fixed upstream.


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