Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
test: skip test-http-full-response on ab errors
Browse files Browse the repository at this point in the history
If we get errors from ab or apr, skip the test and move on.

Fix #3451
  • Loading branch information
AvianFlu authored and isaacs committed Jun 16, 2012
1 parent c49f3b5 commit 145612c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/simple/test-http-full-response.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 145612c

Please sign in to comment.