From c48860318b760cc2b6de0885ff95e66ba4614923 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 Fixes: https://github.com/nodejs/node/issues/22814 Refs: https://github.com/nodejs/node/pull/22900 --- 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