diff options
author | Matteo Collina <hello@matteocollina.com> | 2018-09-17 13:21:47 +0200 |
---|---|---|
committer | Daniel Bevenius <daniel.bevenius@gmail.com> | 2018-10-04 05:31:46 +0200 |
commit | 9577946bedbe610bbe16782783ab2fca407425c6 (patch) | |
tree | 628fa91f6f4ff200ae840fc18034c600fe82d2d3 /test/pseudo-tty | |
parent | cc31d8b2d4d439955ba25dfdc83c8445ce0c850d (diff) | |
download | node-new-9577946bedbe610bbe16782783ab2fca407425c6.tar.gz |
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')
-rw-r--r-- | test/pseudo-tty/test-tty-stdin-call-end.js | 8 | ||||
-rw-r--r-- | test/pseudo-tty/test-tty-stdin-call-end.out | 0 |
2 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(); diff --git a/test/pseudo-tty/test-tty-stdin-call-end.out b/test/pseudo-tty/test-tty-stdin-call-end.out new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/test/pseudo-tty/test-tty-stdin-call-end.out |