test: add test for piping large input from stdin
authorAnna Henningsen <sqrt@entless.org>
Tue, 29 Mar 2016 21:02:47 +0000 (23:02 +0200)
committerMyles Borins <mborins@us.ibm.com>
Mon, 11 Apr 2016 16:10:59 +0000 (12:10 -0400)
commit1994ac09122967b5fbd3a9ec8bd4908a4cb9f074
tree3d63e8feac0898e578c9d53a6a13f6216b3a549b
parentc33a23fd1efd7e9e160f0886adfa328d4d6e5f1d
test: add test for piping large input from stdin

Check that piping a large chunk of data from `process.stdin`
into `process.stdout` does not lose any data by verifying that
the output has the same size as the input.

This is a regression test for #5927 and fails for the commits
in the range [ace100945..89abe8680).

PR-URL: https://github.com/nodejs/node/pull/5949
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
test/parallel/test-stdin-pipe-large.js [new file with mode: 0644]