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>
This commit is contained in:
Matteo Collina 2018-09-17 13:21:47 +02:00 committed by Daniel Bevenius
parent cc31d8b2d4
commit 9577946bed
2 changed files with 8 additions and 0 deletions

View File

@ -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();