Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixup: add logging
  • Loading branch information
bzoz committed Aug 20, 2020
commit aa20c6fb2636fb5fa5e99a5f2a101d702ae87037
6 changes: 5 additions & 1 deletion test/parallel/test-unicode-node-options.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,13 @@ if (process.argv.length === 2) {
const NODE_OPTIONS = `--redirect-warnings=${expected_redirect_value}`;
const result = cp.spawnSync(process.argv0,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const result = cp.spawnSync(process.argv0,
const result = cp.spawnSync(process.execPath,

['--expose-internals', __filename, 'test'],
{ env: { NODE_OPTIONS } });
{
env: { NODE_OPTIONS },
stdio: 'inherit'
});
assert.strictEqual(result.status, 0);
} else {
const redirect_value = getOptionValue('--redirect-warnings');
console.log(`--redirect-warings=${redirect_value}`);
assert.strictEqual(redirect_value, expected_redirect_value);
}