From 145612c2f51e4dfa536f6d1a538ab600aad69e52 Mon Sep 17 00:00:00 2001 From: Charlie McConnell Date: Fri, 15 Jun 2012 18:58:27 -0700 Subject: [PATCH] test: skip test-http-full-response on ab errors If we get errors from ab or apr, skip the test and move on. Fix #3451 --- test/simple/test-http-full-response.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/simple/test-http-full-response.js b/test/simple/test-http-full-response.js index 832c046e2c4..d33df8b883c 100644 --- a/test/simple/test-http-full-response.js +++ b/test/simple/test-http-full-response.js @@ -49,8 +49,8 @@ function runAb(opts, callback) { var command = 'ab ' + opts + ' http://127.0.0.1:' + common.PORT + '/'; exec(command, function(err, stdout, stderr) { if (err) { - if (stderr.indexOf('ab') >= 0) { - console.log('ab not installed? skipping test.\n' + stderr); + if (/ab|apr/mi.test(stderr)) { + console.log('problem spawning ab - skipping test.\n' + stderr); process.reallyExit(0); } process.exit();