test: fix fs.readFile('/dev/stdin') tests
authorBen Noordhuis <info@bnoordhuis.nl>
Wed, 29 Jul 2015 00:30:28 +0000 (02:30 +0200)
committerBen Noordhuis <info@bnoordhuis.nl>
Wed, 29 Jul 2015 11:57:14 +0000 (13:57 +0200)
commitbc733f70652bd9255287b223dc6cabd64a7659c9
tree5175f3ba47fbe99923919da28cab74ffbef446d9
parentd168d01b04cefafcdcb2b88d489d2ed0b7a15154
test: fix fs.readFile('/dev/stdin') tests

The tests were creating the temp fixture file in both the parent
and the child process, leading to interesting race conditions on
the slower buildbots.

Rod notes that the tests started failing after putting the build
directory on a NFS mount.

Fixes: https://github.com/nodejs/io.js/issues/2261
PR-URL: https://github.com/nodejs/io.js/pull/2265
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Reviewed-By: Rod Vagg <rod@vagg.org>
test/parallel/test-fs-readfile-pipe-large.js
test/parallel/test-fs-readfilesync-pipe-large.js