| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Sorry, something went wrong.
There was a problem hiding this comment.
Nit:
| const NODE_OPTIONS = `--redirect-warnings=${expected_redirect_value}`; | |
| const result = cp.spawnSync(process.argv0, | |
| ['--expose-internals', __filename, 'test'], | |
| { | |
| env: { | |
| NODE_OPTIONS | |
| } | |
| }); | |
| const env = { NODE_OPTIONS: `--redirect-warnings=${expected_redirect_value}` }; | |
| const result = cp.spawnSync(process.argv0, | |
| ['--expose-internals', __filename, 'test'], | |
| { env }); |
Sorry, something went wrong.
There was a problem hiding this comment.
Is this necessary?
Sorry, something went wrong.
There was a problem hiding this comment.
Nit: I'd prefer to have explicit check for 'child process' case (i.e. if (process.argv[2] === 'test') {) instead to handle possibly different test start args.
Sorry, something went wrong.
There was a problem hiding this comment.
| const result = cp.spawnSync(process.argv0, | |
| const result = cp.spawnSync(process.execPath, |
Sorry, something went wrong.
Sorry, something went wrong.
|
Fixed some nits and rebased. |
Sorry, something went wrong.
Sorry, something went wrong.
|
Ok, this is weird. This fails only on ubuntu1804_sharedlibs_openssl111_x64 with this error message: ot ok 2466 parallel/test-unicode-node-options
---
duration_ms: 0.144
severity: fail
exitcode: 1
stack: |-
out/Release/node: /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1: version `OPENSSL_1_1_1b' not found (required by out/Release/node)
assert.js:103
throw new AssertionError(obj);
^
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
1 !== 0
at Object.<anonymous> (/home/iojs/build/workspace/node-test-commit-linux-containered/test/parallel/test-unicode-node-options.js:18:10)
at Module._compile (internal/modules/cjs/loader.js:1089:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1110:10)
at Module.load (internal/modules/cjs/loader.js:954:32)
at Function.Module._load (internal/modules/cjs/loader.js:795:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
at internal/main/run_main_module.js:17:47 {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: 1,
expected: 0,
operator: 'strictEqual'
}
...
It looks like other tests can spawn new Node instances just fine. I'm stuck here 🤔 |
Sorry, something went wrong.
There was a problem hiding this comment.
Does this help with the current CI failure?
| env: { NODE_OPTIONS }, | |
| env: { ...process.env, NODE_OPTIONS }, |
Sorry, something went wrong.
There was a problem hiding this comment.
Yes, it helped. Thanks!
Sorry, something went wrong.
Fixes an issue on Windows, where Unicode in NODE_OPTIONS was not parsed correctly. Fixes: nodejs#34399
Sorry, something went wrong.
Fixes an issue on Windows, where Unicode in NODE_OPTIONS was not parsed correctly. Fixes: nodejs#34399 PR-URL: nodejs#34476 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Denys Otrishko <shishugi@gmail.com>
| Back | FazBrowse Home | New Git URL |
Fixes an issue on Windows, where Unicode in NODE_OPTIONS was not parsed
correctly.
Fixes: #34399
Reused the code from node_env_var.cc for getting the enviroment variable value.
Checklist