On Wed, 13 Dec 2023 19:37:15 GMT, Brian Burkhalter <b...@openjdk.org> wrote:

> Modify the `collapse()` function to remove each instance of ".." when the 
> path is absolute and there is no preceding name.

Without this change the updated test fails as:

FAILED     GetCanonicalPath::goodPathsUnix '[3] /../../../../../a/../../b/c, 
/b/c'
org.opentest4j.AssertionFailedError: expected: </b/c> but was: </../b/c>

FAILED     GetCanonicalPath::goodPathsUnix '[5] 
/../../../../../a/../../../../b/c, /b/c'
org.opentest4j.AssertionFailedError: expected: </b/c> but was: </../b/c>

-------------

PR Comment: https://git.openjdk.org/jdk/pull/17089#issuecomment-1854591185

Reply via email to