mirror of https://github.com/lukechilds/node.git
Ryan Dahl
15 years ago
3 changed files with 18 additions and 4 deletions
@ -0,0 +1,12 @@ |
|||
process.mixin(require("../common")); |
|||
child = process.createChildProcess('/usr/bin/env', [], {'HELLO' : 'WORLD'}); |
|||
response = ""; |
|||
|
|||
child.addListener("output", function (chunk) { |
|||
puts("stdout: " + JSON.stringify(chunk)); |
|||
if (chunk) response += chunk; |
|||
}); |
|||
|
|||
process.addListener('exit', function () { |
|||
assert.ok(response.indexOf('HELLO=WORLD') >= 0); |
|||
}); |
Loading…
Reference in new issue