#1951: t/dynpmc/os.t incorrectly uses system-specific error strings
----------------------+-----------------------------------------------------
Reporter: doughera | Owner: nwellnhof
Type: bug | Status: assigned
Priority: normal | Milestone:
Component: testing | Version: 2.11.0
Severity: high | Keywords: gci, cage
Lang: | Patch:
Platform: |
----------------------+-----------------------------------------------------
Comment(by doughera):
Fair enough. Testing the failure code path of cwd is good. The bizarre
strategy in the test seems to be a workaround for a Linux-specific
"feature". On OpenBSD and Solaris, at least, changing the permissions
(with chmod) is sufficient to get the getcwd() call to fail with EACCESS,
as you'd expect.
To be defensive, I think the test should probably only be tried on systems
where removing the current directory is known to be a valid operation.
That is, it should probably be something like 'skip unless Linux'.
Thanks for the research and explanation.
--
Ticket URL: <https://trac.parrot.org/parrot/ticket/1951#comment:11>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets