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:
parent
60891c6ef0
commit
5386b23f64
@ -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]
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user