aboutsummaryrefslogtreecommitdiff
path: root/test/pseudo-tty/test-tty-stdin-call-end.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/pseudo-tty/test-tty-stdin-call-end.js')
-rw-r--r--test/pseudo-tty/test-tty-stdin-call-end.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/pseudo-tty/test-tty-stdin-call-end.js b/test/pseudo-tty/test-tty-stdin-call-end.js
new file mode 100644
index 0000000000..e3c3fd9af4
--- /dev/null
+++ b/test/pseudo-tty/test-tty-stdin-call-end.js
@@ -0,0 +1,8 @@
+'use strict';
+
+require('../common');
+
+// This tests verifies that process.stdin.end() does not
+// crash the process with ENOTCONN
+
+process.stdin.end();