mirror of https://github.com/lukechilds/node.git
Ryan Dahl
14 years ago
2 changed files with 17 additions and 1 deletions
@ -0,0 +1,10 @@ |
|||
var common = require('../common'); |
|||
var exec = require('child_process').exec; |
|||
var assert = require('assert'); |
|||
|
|||
var cmd = 'echo "hello world"'; |
|||
|
|||
exec(cmd, { maxBuffer: 5 }, function(err, stdout, stderr) { |
|||
assert.ok(err); |
|||
assert.ok(/maxBuffer/.test(err.message)); |
|||
}); |
Loading…
Reference in new issue