Skip to content

test: test-path fails on Windows? #6119

@jianchun

Description

@jianchun

https://github.com/nodejs/node/blob/master/test/parallel/test-path.js#L564 has

assert.equal(path.win32._makeLong('C:').toLowerCase(),
                '\\\\?\\' + process.cwd().toLowerCase());

The former resolves to absolute path at C:: '\?\c:'.
The later resolves CWD, could be on another drive 'd:\dir'.

Seems only passes if CWD is at C:\?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions