Skip to content

node/test/parallel/test-debugger-pid.js fails in localized Windows #11250

Description

@vsemozhetbyt
  • Version: Node.js 7.5.0, Node.js master (8.0.0pre), Node.js vee-eight-lkgr
  • Platform: Windows 7 x64 with Russian locale
  • Subsystem: test

On this test I get this error:

assert.js:85
  throw new assert.AssertionError({
  ^
AssertionError: 'The parameter is incorrect.' === 'Ïàðàìåòð çàäàí íåâåðíî.'
    at ChildProcess.<anonymous> (e:\DOC\prg\js\node\-git\node\fork\test\parallel\test-debugger-pid.js:49:10)
    at emitOne (events.js:96:13)
    at ChildProcess.emit (events.js:189:7)
    at e:\DOC\prg\js\node\-git\node\fork\test\parallel\test-debugger-pid.js:18:16
    at Array.forEach (native)
    at Socket.onData (e:\DOC\prg\js\node\-git\node\fork\test\parallel\test-debugger-pid.js:17:8)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:189:7)
    at readableAddChunk (_stream_readable.js:176:18)
    at Socket.Readable.push (_stream_readable.js:134:10)

I use cmd.exe with the Unicode codepage:

> chcp
Active code page: 65001

The test suit after building various Node.js versions fails only for this one test.

If I change the codepage back into the default DOS 866, then the message is:

assert.js:85
  throw new assert.AssertionError({
  ^
AssertionError: 'The parameter is incorrect.' === '├П├а├░├а├м├е├▓├░ ├з├а├д├а├н ├н├е├в├е├░├н├о.'
    at ChildProcess.<anonymous> (j:\temp\node-vee-eight-lkgr\test\parallel\test-debugger-pid.js:49:10)
    at emitOne (events.js:96:13)
    at ChildProcess.emit (events.js:188:7)
    at j:\temp\node-vee-eight-lkgr\test\parallel\test-debugger-pid.js:18:16
    at Array.forEach (native)
    at Socket.onData (j:\temp\node-vee-eight-lkgr\test\parallel\test-debugger-pid.js:17:8)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:188:7)
    at readableAddChunk (_stream_readable.js:176:18)
    at Socket.Readable.push (_stream_readable.js:134:10)

It seems the message somehow is Russian "Параметр задан неверно".

Activity

  1. Trott commented on Feb 8, 2017

    @Trott
    Member

    If you remove lines 37-39 from the test, does the test then pass?

    Unless there's an easy way to ask Window for the localized version of the string, I wonder if we should just not check for it at all.

    Not sure we need to spend too much time perfecting this test anyway as the CLI debugger is going away in the foreseeable future anyway.

  2. vsemozhetbyt commented on Feb 8, 2017

    @vsemozhetbyt
    ContributorAuthor

    If you remove lines 37-39 from the test, does the test then pass?

    Yes, it passes then.

  3. added
    testIssues and PRs related to Node.js core tests and test infrastructure.
    windowsIssues and PRs related to the Windows platform.
    on Feb 8, 2017
  4. Trott commented on Feb 9, 2017

    @Trott
    Member

    If you remove lines 37-39 from the test, does the test then pass?

    Yes, it passes then.

    Maybe that's the way to go. /cc @nodejs/testing for confirming or contrary opinions.

  5. gibfahn commented on Feb 9, 2017

    @gibfahn
    Member

    Not sure we need to spend too much time perfecting this test anyway as the CLI debugger is going away in the foreseeable future anyway.

    +1

  6. santigimeno commented on Feb 9, 2017

    @santigimeno
    Member

    Maybe that's the way to go. /cc @nodejs/testing for confirming or contrary opinions.

    I think it's fine removing those lines

  7. Trott commented on Feb 9, 2017

    @Trott
    Member

    @vsemozhetbyt Do you want to open a PR to remove those lines from the test? Or would you prefer I or someone else do it? (Either way is totally fine by me.)

  8. vsemozhetbyt commented on Feb 9, 2017

    @vsemozhetbyt
    ContributorAuthor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    testIssues and PRs related to Node.js core tests and test infrastructure.windowsIssues and PRs related to the Windows platform.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions