Commit 8778fca
test: check fd 0,1,2 are used, not access mode
Don't do a write on stdout/stderr because that checks for their
writability. But fd=1 could legitimately be opened with read-only
access by the user. All this test needs to ensure is that
they are used at startup.
PR-URL: #10339
Fixes: #10234
Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: James M Snell <jasnell@gmail.com>1 parent 84e2ff3 commit 8778fcaCopy full SHA for 8778fca
File tree
Expand file treeCollapse file tree
1 file changed
+3
-16
lines changedOpen diff view settings
Filter options
- test/parallel
Expand file treeCollapse file tree
1 file changed
+3
-16
lines changedOpen diff view settings
Collapse file
test/parallel/test-stdio-closed.js
Copy file name to clipboardExpand all lines: test/parallel/test-stdio-closed.js+3-16Lines changed: 3 additions & 16 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
2 | 2 | |
3 | 3 | |
4 | 4 | |
| 5 | + |
5 | 6 | |
6 | 7 | |
7 | 8 | |
8 | 9 | |
9 | 10 | |
10 | 11 | |
11 | 12 | |
12 | | - |
13 | | - |
14 | | - |
15 | | - |
16 | | - |
17 | | - |
18 | | - |
19 | | - |
20 | | - |
21 | | - |
22 | | - |
23 | | - |
24 | | - |
25 | | - |
26 | | - |
| 13 | + |
27 | 14 | |
28 | 15 | |
29 | 16 | |
| ||
32 | 19 | |
33 | 20 | |
34 | 21 | |
35 | | - |
| 22 | + |
36 | 23 | |
0 commit comments