1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/js/src/jit-test/tests/parallel/Array-mapPar-short.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,12 @@ 1.4 +load(libdir + "parallelarray-helpers.js"); 1.5 + 1.6 +function test() { 1.7 + // Test what happens if the length of the array is very short (i.e., 1.8 + // less than the number of cores). There used to be a bug in this 1.9 + // case that led to crashes or other undefined behavior. 1.10 + var makeadd1 = function (v) { return [v]; } 1.11 + assertArraySeqParResultsEq(range(1, 3), "map", makeadd1); 1.12 +} 1.13 + 1.14 +if (getBuildConfiguration().parallelJS) 1.15 + test();