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 <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: George Adams <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
mcollina authored and danbev committed Oct 4, 2018
1 parent cc31d8b commit 9577946
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
Original file line number Diff line number Diff line change
@@ -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 9577946

Please sign in to comment.