Bug 1183324 - Make infinite recursion test faster to fix intermittent timeouts. r=terrence, a=test-only
authorJon Coppeard <jcoppeard@mozilla.com>
Thu, 23 Jul 2015 09:47:09 +0100
changeset 275452 a5b4c27b2b16e1a847077bb90ae26f1aa00af133
parent 275451 a9b694bfbc421e59ee53ae7f65a184243c4655ae
child 275453 5c1b77af3a6a15fffbb71e20dc9fc11804e64b52
push id863
push userraliiev@mozilla.com
push dateMon, 03 Aug 2015 13:22:43 +0000
treeherdermozilla-release@f6321b14228d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersterrence, test-only
bugs1183324
milestone40.0
Bug 1183324 - Make infinite recursion test faster to fix intermittent timeouts. r=terrence, a=test-only
js/src/tests/js1_8_5/extensions/recursion.js
--- a/js/src/tests/js1_8_5/extensions/recursion.js
+++ b/js/src/tests/js1_8_5/extensions/recursion.js
@@ -1,9 +1,8 @@
-// |reftest| skip-if((xulRuntime.OS=="Darwin"||Android)&&isDebugBuild) -- this takes too long to over-recurse.
 /*
  * Any copyright is dedicated to the Public Domain.
  * http://creativecommons.org/licenses/publicdomain/
  * Contributor:
  *   Christian Holler <decoder@own-hero.net>
  */
 
 //-----------------------------------------------------------------------------
@@ -39,20 +38,22 @@ function f()
 function test()
 {
   function foopy()
   {
     try
     {
       for (var i in f());
     }
-    catch (e) { }
+    catch (e)
+    {
+      gc();
+    }
   }
   foopy();
-  gc();
 }
 test();
 
 /******************************************************************************/
 
 if (typeof reportCompare === "function")
   reportCompare(true, true);