Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
fix simple/test-child-process-double-pipe on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Igor Zinkovsky committed Oct 28, 2011
1 parent f35a396 commit 5631549
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/simple/test-child-process-double-pipe.js
Expand Up @@ -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'),
Expand All @@ -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/']);

Expand Down

0 comments on commit 5631549

Please sign in to comment.