1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/js/src/jit-test/tests/parallel/timeout.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,17 @@ 1.4 +// |jit-test| exitstatus: 6; 1.5 + 1.6 +load(libdir + "parallelarray-helpers.js"); 1.7 + 1.8 +function iterate(x) { 1.9 + while (x == 2046) { 1.10 + // for exactly one index, this infinitely loops! 1.11 + // this ensures that the warmup doesn't loop. 1.12 + } 1.13 + return 22; 1.14 +} 1.15 + 1.16 +timeout(1); 1.17 +if (getBuildConfiguration().parallelJS) 1.18 + Array.buildPar(2048, iterate); 1.19 +else 1.20 + while (true);