Skip to content

Test "test-process-chdir" fails on El Capitan #3108

Description

@tciuro

Hello,

Running the tests on v4.1.1 reveals one failure:

➜  node-v4.1.1  make test
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C out BUILDTYPE=Release V=1
make[1]: Nothing to be done for `all'.
ln -fs out/Release/node node
Running main() from gtest_main.cc
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from UtilTest
[ RUN      ] UtilTest.ListHead
[       OK ] UtilTest.ListHead (0 ms)
[----------] 1 test from UtilTest (0 ms total)

[----------] Global test environment tear-down
[==========] 1 test from 1 test case ran. (0 ms total)
[  PASSED  ] 1 test.
/usr/bin/python tools/test.py --mode=release message parallel sequential -J
=== release test-process-chdir ===                                             
Path: parallel/test-process-chdir
assert.js:89
  throw new assert.AssertionError({
  ^
AssertionError: '/Users/tito/Desktop/node-v4.1.1/test/tmp.5/weird 쎤쎫쎯 characters áâã' === '/Users/tito/Desktop/node-v4.1.1/test/tmp.5/weird 쎤쎫쎯 characters áâã'
    at Object.<anonymous> (/Users/tito/Desktop/node-v4.1.1/test/parallel/test-process-chdir.js:20:8)
    at Module._compile (module.js:434:26)
    at Object.Module._extensions..js (module.js:452:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Function.Module.runMain (module.js:475:10)
    at startup (node.js:117:18)
    at node.js:951:3
Command: out/Release/node /Users/tito/Desktop/node-v4.1.1/test/parallel/test-process-chdir.js
[01:09|% 100|+ 918|-   1]: Done                                                
make: *** [test] Error 1

I have reproduced this easily. I applied the following patch to test the output:

https://gist.github.com/indutny/acb44b3c58294334fe10

The results looks like this:

Path: parallel/test-process-chdir
2f55736572732f7469746f2f4465736b746f702f6e6f64652d76342e312e312f746573742f706172616c6c656c
2f55736572732f7469746f2f4465736b746f702f6e6f64652d76342e312e312f746573742f746d702e32
assert.js:89
  throw new assert.AssertionError({
  ^
AssertionError: '/Users/tito/Desktop/node-v4.1.1/test/tmp.2/weird 쎤쎫쎯 characters áâã' === '/Users/tito/Desktop/node-v4.1.1/test/tmp.2/weird 쎤쎫쎯 characters áâã'
    at Object.<anonymous> (/Users/tito/Desktop/node-v4.1.1/test/parallel/test-process-chdir.js:22:8)

Metadata

Metadata

Assignees

No one assigned

    Labels

    macosIssues and PRs related to the macOS platform.testIssues and PRs related to Node.js core tests and test infrastructure.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions