Skip to content

Commit 46502ff

Browse files
committed
Fixes: #53989
1 parent 7fb65f6 commit 46502ff

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

test/parallel/test-child-process-cwd.js

+8-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,14 @@ function testCwd(options, expectPidType, expectCode = 0, expectData) {
5252
});
5353

5454
child.on('close', common.mustCall(function() {
55-
expectData && assert.strictEqual(data.trim(), expectData);
55+
if (expectData) {
56+
// In Windows, compare without considering case
57+
if (process.platform === 'win32') {
58+
assert.strictEqual(data.trim().toLowerCase(), expectData.toLowerCase());
59+
} else {
60+
assert.strictEqual(data.trim(), expectData);
61+
}
62+
}
5663
}));
5764

5865
return child;

0 commit comments

Comments
 (0)