test: stdin is not always a net.Socket
authorJeremiah Senkpiel <fishrock123@rocketmail.com>
Mon, 28 Mar 2016 15:24:34 +0000 (11:24 -0400)
committerMyles Borins <mborins@us.ibm.com>
Mon, 11 Apr 2016 15:49:08 +0000 (11:49 -0400)
commit63d82960fd542827cc5e402ba71e29a5aa67b006
tree01b6718bbdade29e9b9b5054111ccf4481af2d54
parentf60ce1078dd1a781773f75c8d1616a63fa4a6b13
test: stdin is not always a net.Socket

`<`-ing a file into stdin actually results in a `fs.ReadStream`, rather
than a `tty.ReadStream`, and as such does not inherit from net.Socket,
unlike the other possible stdin options.

Refs: https://github.com/nodejs/node/pull/5916
PR-URL: https://github.com/nodejs/node/pull/5935
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
test/known_issues/test-stdin-is-always-net.socket.js [new file with mode: 0644]