Sha256: 527b45628d3c47baf1211eda7dd39fc6e10531bf1a81d77b6d06e91958efb43d
Contents?: true
Size: 423 Bytes
Versions: 3
Compression:
Stored size: 423 Bytes
Contents
common = require("../common"); assert = common.assert var spawn = require('child_process').spawn; child = spawn('/usr/bin/env', [], {env: {'HELLO' : 'WORLD'}}); response = ""; child.stdout.setEncoding('utf8'); child.stdout.addListener("data", function (chunk) { console.log("stdout: " + chunk); response += chunk; }); process.addListener('exit', function () { assert.ok(response.indexOf('HELLO=WORLD') >= 0); });
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rednode-0.1.2 | ext/node/test/simple/test-child-process-env.js |
rednode-0.1.1 | ext/node/test/simple/test-child-process-env.js |
rednode-0.1.0 | ext/node/test/simple/test-child-process-env.js |