summaryrefslogtreecommitdiff
path: root/test/pseudo-tty/test-tty-stdin-call-end.js
diff options
context:
space:
mode:
authorMatteo Collina <hello@matteocollina.com>2018-09-17 13:21:47 +0200
committerDaniel Bevenius <daniel.bevenius@gmail.com>2018-10-04 05:31:46 +0200
commit9577946bedbe610bbe16782783ab2fca407425c6 (patch)
tree628fa91f6f4ff200ae840fc18034c600fe82d2d3 /test/pseudo-tty/test-tty-stdin-call-end.js
parentcc31d8b2d4d439955ba25dfdc83c8445ce0c850d (diff)
downloadandroid-node-v8-9577946bedbe610bbe16782783ab2fca407425c6.tar.gz
android-node-v8-9577946bedbe610bbe16782783ab2fca407425c6.tar.bz2
android-node-v8-9577946bedbe610bbe16782783ab2fca407425c6.zip
test: add process.stdin.end() TTY regression test
PR-URL: https://github.com/nodejs/node/pull/23051 Fixes: https://github.com/nodejs/node/issues/22814 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: George Adams <george.adams@uk.ibm.com> Reviewed-By: James M Snell <jasnell@gmail.com>
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();