test: skip test-http-full-response on ab errors
authorCharlie McConnell <charlie@charlieistheman.com>
Sat, 16 Jun 2012 01:58:27 +0000 (18:58 -0700)
committerisaacs <i@izs.me>
Sat, 16 Jun 2012 15:38:47 +0000 (08:38 -0700)
If we get errors from ab or apr, skip the test and move on.

Fix #3451

test/simple/test-http-full-response.js

index 832c046..d33df8b 100644 (file)
@@ -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();