mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
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>
This commit is contained in:
1 parent
236491e698
commit
046d651118
1 file changed
+6
-1
@@ -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]
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user