Bug 1335996 - Make test for bug 1333946 more reliable. a=test-only
authorShu-yu Guo <shu@rfrn.org>
Mon, 06 Feb 2017 21:22:35 -0800
changeset 375979 05fac47f4f7da5f34cebaa962e2ab7009776801e
parent 375978 bbaed5a7faece9003c1403d1fc5dc0025629b8d2
child 375980 5254b7f0b149e82b04a8d7fd027d4cd92b0c9448
push id6996
push userjlorenzo@mozilla.com
push dateMon, 06 Mar 2017 20:48:21 +0000
treeherdermozilla-beta@d89512dab048 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstest-only
bugs1335996, 1333946
milestone53.0a2
Bug 1335996 - Make test for bug 1333946 more reliable. a=test-only
js/src/jit-test/tests/ion/bug1333946.js
--- a/js/src/jit-test/tests/ion/bug1333946.js
+++ b/js/src/jit-test/tests/ion/bug1333946.js
@@ -1,6 +1,8 @@
-// |jit-test| exitstatus: 6;
+// |jit-test| error: 42;
 
 for (var x of [0]) {
-    timeout(0.001);
-    for (;;) {}
+  for (var i = 0; ; i++) {
+    if (i === 20000)
+      throw 42;
+  }
 }