projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c49f3b5
)
test: skip test-http-full-response on ab errors
author
Charlie McConnell
<charlie@charlieistheman.com>
Sat, 16 Jun 2012 01:58:27 +0000
(18:58 -0700)
committer
isaacs
<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
patch
|
blob
|
history
diff --git
a/test/simple/test-http-full-response.js
b/test/simple/test-http-full-response.js
index
832c046
..
d33df8b
100644
(file)
--- 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();