Commit a50dd21
test: do not assume
We had a bunch of tests that would fail if run from an executable that
contains any char that should be escaped when run from a shell.
PR-URL: #55028
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>process.execPath contains no spaces1 parent c56e324 commit a50dd21Copy full SHA for a50dd21
File tree
Expand file treeCollapse file tree
16 files changed
+151
-88
lines changedOpen diff view settings
Filter options
- test
- parallel
- sequential
Expand file treeCollapse file tree
16 files changed
+151
-88
lines changedOpen diff view settings
Collapse file
test/parallel/test-child-process-exec-abortcontroller-promisified.js
Copy file name to clipboardExpand all lines: test/parallel/test-child-process-exec-abortcontroller-promisified.js+2-1Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
11 | 11 | |
12 | 12 | |
13 | 13 | |
14 | | - |
| 14 | + |
| 15 | + |
15 | 16 | |
16 | 17 | |
17 | 18 | |
|
Collapse file
test/parallel/test-child-process-exec-maxbuf.js
Copy file name to clipboardExpand all lines: test/parallel/test-child-process-exec-maxbuf.js+32-39Lines changed: 32 additions & 39 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
10 | 10 | |
11 | 11 | |
12 | 12 | |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | + |
13 | 29 | |
14 | 30 | |
15 | | - |
16 | | - |
17 | | - |
18 | | - |
| 31 | + |
19 | 32 | |
20 | 33 | |
21 | 34 | |
| ||
24 | 37 | |
25 | 38 | |
26 | 39 | |
27 | | - |
28 | | - |
29 | | - |
30 | | - |
| 40 | + |
31 | 41 | |
32 | 42 | |
33 | 43 | |
34 | 44 | |
35 | 45 | |
36 | 46 | |
37 | | - |
38 | 47 | |
39 | 48 | |
40 | | - |
| 49 | + |
41 | 50 | |
42 | 51 | |
43 | 52 | |
| ||
57 | 66 | |
58 | 67 | |
59 | 68 | |
60 | | - |
61 | | - |
62 | | - |
63 | | - |
64 | | - |
| 69 | + |
| 70 | + |
65 | 71 | |
66 | 72 | |
67 | 73 | |
| ||
75 | 81 | |
76 | 82 | |
77 | 83 | |
78 | | - |
79 | | - |
80 | | - |
81 | | - |
| 84 | + |
82 | 85 | |
83 | 86 | |
84 | 87 | |
| ||
87 | 90 | |
88 | 91 | |
89 | 92 | |
90 | | - |
91 | | - |
92 | | - |
93 | | - |
| 93 | + |
| 94 | + |
94 | 95 | |
95 | 96 | |
96 | 97 | |
| ||
99 | 100 | |
100 | 101 | |
101 | 102 | |
102 | | - |
103 | | - |
104 | | - |
105 | | - |
| 103 | + |
| 104 | + |
106 | 105 | |
107 | 106 | |
108 | 107 | |
| ||
111 | 110 | |
112 | 111 | |
113 | 112 | |
114 | | - |
115 | | - |
116 | | - |
117 | | - |
| 113 | + |
| 114 | + |
118 | 115 | |
119 | 116 | |
120 | 117 | |
| ||
125 | 122 | |
126 | 123 | |
127 | 124 | |
128 | | - |
129 | | - |
130 | | - |
131 | | - |
| 125 | + |
| 126 | + |
132 | 127 | |
133 | 128 | |
134 | 129 | |
| ||
139 | 134 | |
140 | 135 | |
141 | 136 | |
142 | | - |
143 | | - |
144 | | - |
145 | | - |
| 137 | + |
| 138 | + |
146 | 139 | |
147 | 140 | |
148 | 141 | |
|
Collapse file
test/parallel/test-child-process-promisified.js
Copy file name to clipboardExpand all lines: test/parallel/test-child-process-promisified.js+10-2Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
7 | 7 | |
8 | 8 | |
9 | 9 | |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + |
10 | 18 | |
11 | | - |
| 19 | + |
12 | 20 | |
13 | 21 | |
14 | 22 | |
| ||
45 | 53 | |
46 | 54 | |
47 | 55 | |
48 | | - |
| 56 | + |
49 | 57 | |
50 | 58 | |
51 | 59 | |
|
Collapse file
test/parallel/test-child-process-spawn-shell.js
Copy file name to clipboardExpand all lines: test/parallel/test-child-process-spawn-shell.js+2-2Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
49 | 49 | |
50 | 50 | |
51 | 51 | |
52 | | - |
53 | | - |
| 52 | + |
| 53 | + |
54 | 54 | |
55 | 55 | |
56 | 56 | |
|
Collapse file
test/parallel/test-child-process-spawnsync-shell.js
Copy file name to clipboardExpand all lines: test/parallel/test-child-process-spawnsync-shell.js+2-2Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
36 | 36 | |
37 | 37 | |
38 | 38 | |
39 | | - |
40 | | - |
| 39 | + |
| 40 | + |
41 | 41 | |
42 | 42 | |
43 | 43 | |
|
Collapse file
test/parallel/test-cli-node-print-help.js
Copy file name to clipboardExpand all lines: test/parallel/test-cli-node-print-help.js+10-1Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
11 | 11 | |
12 | 12 | |
13 | 13 | |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | + |
14 | 23 | |
15 | 24 | |
16 | | - |
| 25 | + |
17 | 26 | |
18 | 27 | |
19 | 28 | |
|
Collapse file
test/parallel/test-cli-syntax-eval.js
Copy file name to clipboardExpand all lines: test/parallel/test-cli-syntax-eval.js+11-4Lines changed: 11 additions & 4 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
4 | 4 | |
5 | 5 | |
6 | 6 | |
7 | | - |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | + |
8 | 16 | |
9 | 17 | |
10 | 18 | |
11 | 19 | |
12 | 20 | |
13 | | - |
14 | | - |
| 21 | + |
15 | 22 | |
16 | 23 | |
17 | 24 | |
18 | 25 | |
19 | | - |
| 26 | + |
20 | 27 | |
21 | 28 | |
22 | 29 | |
|
Collapse file
test/parallel/test-http-chunk-problem.js
Copy file name to clipboardExpand all lines: test/parallel/test-http-chunk-problem.js+11-4Lines changed: 11 additions & 4 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
43 | 43 | |
44 | 44 | |
45 | 45 | |
46 | | - |
47 | | - |
| 46 | + |
| 47 | + |
| 48 | + |
| 49 | + |
| 50 | + |
| 51 | + |
| 52 | + |
| 53 | + |
48 | 54 | |
49 | 55 | |
50 | 56 | |
51 | | - |
52 | | - |
| 57 | + |
| 58 | + |
53 | 59 | |
| 60 | + |
54 | 61 | |
55 | 62 | |
56 | 63 | |
|
Collapse file
test/parallel/test-npm-install.js
Copy file name to clipboardExpand all lines: test/parallel/test-npm-install.js+3-1Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
40 | 40 | |
41 | 41 | |
42 | 42 | |
| 43 | + |
| 44 | + |
43 | 45 | |
44 | 46 | |
45 | 47 | |
46 | 48 | |
47 | 49 | |
48 | 50 | |
49 | | - |
| 51 | + |
50 | 52 | |
51 | 53 | |
52 | 54 | |
|
Collapse file
test/parallel/test-permission-allow-child-process-cli.js
Copy file name to clipboardExpand all lines: test/parallel/test-permission-allow-child-process-cli.js+9-1Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
15 | 15 | |
16 | 16 | |
17 | 17 | |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | + |
18 | 26 | |
19 | 27 | |
20 | 28 | |
21 | 29 | |
22 | 30 | |
23 | | - |
| 31 | + |
24 | 32 | |
25 | 33 | |
26 | 34 | |
0 commit comments