test: fix non-ASCII addon cache path (#3370) · nodejs/node-gyp@e6f699f · GitHub
Skip to content

Commit e6f699f

Browse files
authored
test: fix non-ASCII addon cache path (#3370)
On cp1252 Windows, the charmap fixture cannot print U+012B with UTF-8 mode disabled, so the addon test is skipped. Python 3.15 enables UTF-8 mode by default, allowing the test to run and exposing a cache layout mismatch: --nodedir selects Release/node.lib, but the downloaded SDK stores it under the target architecture. Link the cache root through a temporary non-ASCII path and pass it with --devdir, preserving the version/architecture/node.lib layout. Clean up the temporary directory in finally while preserving the existing symlink error handling, including the administrator hint for EPERM.
1 parent e91cd76 commit e6f699f

1 file changed

Lines changed: 43 additions & 34 deletions

File tree

‎test/test-addon.js‎

Lines changed: 43 additions & 34 deletions

0 commit comments

Comments
 (0)