From 9826159bf102aaa5dad6eaea7998ede8460de471 Mon Sep 17 00:00:00 2001 From: isaacs Date: Thu, 7 Mar 2013 16:29:30 -0800 Subject: [PATCH] test: Trim cat output for windows --- test/simple/test-child-process-stdio-inherit.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/simple/test-child-process-stdio-inherit.js b/test/simple/test-child-process-stdio-inherit.js index b63095475e..f7776fecb9 100644 --- a/test/simple/test-child-process-stdio-inherit.js +++ b/test/simple/test-child-process-stdio-inherit.js @@ -44,7 +44,8 @@ function grandparent() { child.on('close', function(code, signal) { assert.equal(code, 0); assert.equal(signal, null); - assert.equal(output, input); + // cat on windows adds a \r\n at the end. + assert.equal(output.trim(), input.trim()); }); }