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:
37bb1df
)
benchmark: fix `wrk` check
author
Brian White
<mscdex@mscdex.net>
Thu, 5 Mar 2015 22:12:17 +0000
(17:12 -0500)
committer
Brian White
<mscdex@mscdex.net>
Thu, 5 Mar 2015 22:13:08 +0000
(17:13 -0500)
PR-URL: https://github.com/iojs/io.js/pull/1076
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
benchmark/common.js
patch
|
blob
|
history
diff --git
a/benchmark/common.js
b/benchmark/common.js
index
0b0c7ee
..
2a51874
100644
(file)
--- a/
benchmark/common.js
+++ b/
benchmark/common.js
@@
-39,7
+39,7
@@
if (module === require.main) {
function hasWrk() {
var result = child_process.spawnSync('wrk', ['-h']);
- if (result.error.code === 'ENOENT') {
+ if (result.error
&& result.error
.code === 'ENOENT') {
console.error('Couldn\'t locate `wrk` which is needed for running ' +
'benchmarks. Check benchmark/README.md for further instructions.');
process.exit(-1);