From 748d9d22fa18cbf8e212bf41a6121068079ade42 Mon Sep 17 00:00:00 2001 From: Matteo Collina Date: Mon, 17 Sep 2018 13:21:47 +0200 Subject: [PATCH] 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 Reviewed-By: Colin Ihrig Reviewed-By: Trivikram Kamat Reviewed-By: Luigi Pinca Reviewed-By: George Adams Reviewed-By: James M Snell --- test/pseudo-tty/test-tty-stdin-call-end.js | 8 ++++++++ test/pseudo-tty/test-tty-stdin-call-end.out | 0 2 files changed, 8 insertions(+) create mode 100644 test/pseudo-tty/test-tty-stdin-call-end.js create mode 100644 test/pseudo-tty/test-tty-stdin-call-end.out 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 00000000000000..e3c3fd9af469ba --- /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 00000000000000..e69de29bb2d1d6