From 56315494dd5b70f308b84c6601c3a79c09677e8d Mon Sep 17 00:00:00 2001 From: Igor Zinkovsky Date: Fri, 28 Oct 2011 15:57:39 -0700 Subject: [PATCH] fix simple/test-child-process-double-pipe on windows --- test/simple/test-child-process-double-pipe.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test/simple/test-child-process-double-pipe.js b/test/simple/test-child-process-double-pipe.js index 9795bb45bf..cb1edfae54 100644 --- a/test/simple/test-child-process-double-pipe.js +++ b/test/simple/test-child-process-double-pipe.js @@ -19,8 +19,7 @@ // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE // USE OR OTHER DEALINGS IN THE SOFTWARE. -// libuv-broken - +var is_windows = process.platform === 'win32'; var assert = require('assert'), util = require('util'), @@ -29,7 +28,9 @@ var assert = require('assert'), // We're trying to reproduce: // $ echo "hello\nnode\nand\nworld" | grep o | sed s/o/a/ -var echo = spawn('echo', ['hello\nnode\nand\nworld\n']), +var echo = is_windows ? spawn('cmd.exe', ['/c', 'echo', 'hello&&', 'echo', + 'node&&', 'echo', 'and&&', 'echo', 'world']) : + spawn('echo', ['hello\nnode\nand\nworld\n']), grep = spawn('grep', ['o']), sed = spawn('sed', ['s/o/O/']);