summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2013-03-05 17:47:12 -0800
committerisaacs <i@izs.me>2013-03-06 11:44:29 -0800
commit32ac8c0b69d87ff635c3827f1891907dec9ee381 (patch)
tree790796afab3130503618c9dd446bb6e8767fad2e /test
parent5038f4018534f498734fc39ef1bcd72650a3e7e2 (diff)
downloadnode-new-32ac8c0b69d87ff635c3827f1891907dec9ee381.tar.gz
test: Pass cli flags in pummel/test-regress-GH-892
Diffstat (limited to 'test')
-rw-r--r--test/pummel/test-regress-GH-892.js11
1 files changed, 9 insertions, 2 deletions
diff --git a/test/pummel/test-regress-GH-892.js b/test/pummel/test-regress-GH-892.js
index 901e4e9dc9..0c41184946 100644
--- a/test/pummel/test-regress-GH-892.js
+++ b/test/pummel/test-regress-GH-892.js
@@ -50,8 +50,15 @@ function makeRequest() {
var stderrBuffer = '';
- var child = spawn(process.execPath,
- [childScript, common.PORT, bytesExpected]);
+ // Pass along --trace-deprecation/--throw-deprecation in
+ // process.execArgv to track down nextTick recursion errors
+ // more easily. Also, this is handy when using this test to
+ // view V8 opt/deopt behavior.
+ var args = process.execArgv.concat([ childScript,
+ common.PORT,
+ bytesExpected ]);
+
+ var child = spawn(process.execPath, args);
child.on('exit', function(code) {
assert.ok(/DONE/.test(stderrBuffer));