summaryrefslogtreecommitdiff
path: root/test/pseudo-tty
diff options
context:
space:
mode:
authorAnna Henningsen <anna@addaleax.net>2018-09-24 12:08:46 +0200
committerAnna Henningsen <anna@addaleax.net>2018-10-04 09:20:25 -0700
commit8bf48bf2cf714125fef91fd0651d3517b8953034 (patch)
tree5f0c9d1b101875b75a1d13927f3a3a014968a42e /test/pseudo-tty
parentcbc3ef64ceaf95ec1d0d1535211ce3a6945407e1 (diff)
downloadandroid-node-v8-8bf48bf2cf714125fef91fd0651d3517b8953034.tar.gz
android-node-v8-8bf48bf2cf714125fef91fd0651d3517b8953034.tar.bz2
android-node-v8-8bf48bf2cf714125fef91fd0651d3517b8953034.zip
test: add stdin writable regression test
Make sure that `process.stdin.write()`, and in particular ending the stream, works. PR-URL: https://github.com/nodejs/node/pull/23053 Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'test/pseudo-tty')
-rw-r--r--test/pseudo-tty/test-stdin-write.js3
-rw-r--r--test/pseudo-tty/test-stdin-write.out1
2 files changed, 4 insertions, 0 deletions
diff --git a/test/pseudo-tty/test-stdin-write.js b/test/pseudo-tty/test-stdin-write.js
new file mode 100644
index 0000000000..39091f20bb
--- /dev/null
+++ b/test/pseudo-tty/test-stdin-write.js
@@ -0,0 +1,3 @@
+'use strict';
+require('../common');
+process.stdin.end('foobar\n');
diff --git a/test/pseudo-tty/test-stdin-write.out b/test/pseudo-tty/test-stdin-write.out
new file mode 100644
index 0000000000..323fae03f4
--- /dev/null
+++ b/test/pseudo-tty/test-stdin-write.out
@@ -0,0 +1 @@
+foobar