Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f2b4fd3

Browse filesBrowse files
injunchoi98marco-ippolito
authored andcommitted
test: compare paths on Windows without considering case
PR-URL: #53993 Fixes: #53989 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Daeyeon Jeong <daeyeon.dev@gmail.com> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Stefan Stojanovic <stefan.stojanovic@janeasystems.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
1 parent 490f15a commit f2b4fd3
Copy full SHA for f2b4fd3

1 file changed

+8-1Lines changed: 8 additions & 1 deletion

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

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

Copy file name to clipboardExpand all lines: test/parallel/test-child-process-cwd.js
+8-1Lines changed: 8 additions & 1 deletion
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 (common.isWindows) {
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.