Skip to content

Commit

Permalink
test: add process.stdin.end() TTY regression test
Browse files Browse the repository at this point in the history
PR-URL: #23051
Fixes: #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>
  • Loading branch information
mcollina authored and jasnell committed Oct 17, 2018
1 parent 24186e0 commit d71d3ef
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions 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();
Empty file.

0 comments on commit d71d3ef

Please sign in to comment.