8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f60ce10 commit 63d8296Copy full SHA for 63d8296
test/known_issues/test-stdin-is-always-net.socket.js
@@ -0,0 +1,19 @@
1
+'use strict';
2
+// Refs: https://github.com/nodejs/node/pull/5916
3
+
4
+const common = require('../common');
5
+const assert = require('assert');
6
+const spawn = require('child_process').spawn;
7
+const net = require('net');
8
9
+if (process.argv[2] === 'child') {
10
+ assert(process.stdin instanceof net.Socket);
11
+ return;
12
+}
13
14
+const proc = spawn(process.execPath, [__filename, 'child'], { stdio: 'ignore' });
15
+// To double-check this test, set stdio to 'pipe' and uncomment the line below.
16
+// proc.stderr.pipe(process.stderr);
17
+proc.on('exit', common.mustCall(function(exitCode) {
18
+ process.exitCode = exitCode;
19
+}));