Skip to content

Commit

Permalink
Fixes: #53989
Browse files Browse the repository at this point in the history
  • Loading branch information
EarlyRiser42 committed Jul 22, 2024
1 parent 7fb65f6 commit 46502ff
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion test/parallel/test-child-process-cwd.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,14 @@ function testCwd(options, expectPidType, expectCode = 0, expectData) {
});

child.on('close', common.mustCall(function() {
expectData && assert.strictEqual(data.trim(), expectData);
if (expectData) {
// In Windows, compare without considering case
if (process.platform === 'win32') {
assert.strictEqual(data.trim().toLowerCase(), expectData.toLowerCase());
} else {
assert.strictEqual(data.trim(), expectData);
}
}
}));

return child;
Expand Down

0 comments on commit 46502ff

Please sign in to comment.