diff --git a/test/parallel/test-child-process-cwd.js b/test/parallel/test-child-process-cwd.js index b527b7f9ea8..e876361b167 100644 --- a/test/parallel/test-child-process-cwd.js +++ b/test/parallel/test-child-process-cwd.js @@ -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 (common.isWindows) { + assert.strictEqual(data.trim().toLowerCase(), expectData.toLowerCase()); + } else { + assert.strictEqual(data.trim(), expectData); + } + } })); return child;