1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/js/src/jit-test/tests/basic/shell-watchdog.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,16 @@ 1.4 +// |jit-test| exitstatus: 6; 1.5 + 1.6 +/* This test will loop infinitely if the shell watchdog 1.7 + fails to kick in. */ 1.8 + 1.9 +timeout(0.1); 1.10 +var start = new Date(); 1.11 + 1.12 +while (true) { 1.13 + var end = new Date(); 1.14 + var duration = (end.getTime() - start.getTime()) / 1000; 1.15 + if (duration > 1) { 1.16 + print("tick"); 1.17 + start = new Date(); 1.18 + } 1.19 +}