summaryrefslogtreecommitdiff
path: root/test/sequential/test-child-process-emfile.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/sequential/test-child-process-emfile.js')
-rw-r--r--test/sequential/test-child-process-emfile.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/sequential/test-child-process-emfile.js b/test/sequential/test-child-process-emfile.js
index 7e31792f9d..8091e54a5c 100644
--- a/test/sequential/test-child-process-emfile.js
+++ b/test/sequential/test-child-process-emfile.js
@@ -58,6 +58,12 @@ for (;;) {
// Should emit an error, not throw.
const proc = child_process.spawn(process.execPath, ['-e', '0']);
+// Verify that stdio is not setup on EMFILE or ENFILE.
+assert.strictEqual(proc.stdin, undefined);
+assert.strictEqual(proc.stdout, undefined);
+assert.strictEqual(proc.stderr, undefined);
+assert.strictEqual(proc.stdio, undefined);
+
proc.on('error', common.mustCall(function(err) {
assert.strictEqual(err.code, 'EMFILE');
}));