Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBartosz Sosnowski <bartosz@janeasystems.com>2016-05-31 19:25:15 +0300
committerAlexis Campailla <alexis@janeasystems.com>2016-06-10 18:30:28 +0300
commit5386b23f641b9bddc3a8dd93f85e43f987011d02 (patch)
treee2b32b856376abf52db980bcb1ac4b7f631fd87d /benchmark/child_process
parent60891c6ef0dc3bf9518d7132da6498c66f26763e (diff)
benchmark: fix child-process-exec-stdout on win
This benchmark fails on Windows when trying to execute command which is more than 32k in size. This commits skips this one case when running under Windows. PR-URL: https://github.com/nodejs/node/pull/7178 Reviewed-By: Trott - Rich Trott <rtrott@gmail.com> Reviewed-By: orangemocha - Alexis Campailla <orangemocha@nodejs.org>
Diffstat (limited to 'benchmark/child_process')
-rw-r--r--benchmark/child_process/child-process-exec-stdout.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/benchmark/child_process/child-process-exec-stdout.js b/benchmark/child_process/child-process-exec-stdout.js
index 79efb6fadf2..6194f66b55d 100644
--- a/benchmark/child_process/child-process-exec-stdout.js
+++ b/benchmark/child_process/child-process-exec-stdout.js
@@ -1,7 +1,12 @@
'use strict';
const common = require('../common.js');
+
+var messagesLength = [64, 256, 1024, 4096];
+// Windows does not support that long arguments
+if (process.platform !== 'win32')
+ messagesLength.push(32768);
const bench = common.createBenchmark(main, {
- len: [64, 256, 1024, 4096, 32768],
+ len: messagesLength,
dur: [5]
});