Bug 1215767 - Rewrite the test for bug 1214006 to be more robust r=lth
authorJon Coppeard <jcoppeard@mozilla.com>
Wed, 21 Oct 2015 15:14:13 +0100
changeset 302171 e532df30d2a14409ce4a25e2a127468bf3eee55b
parent 302170 302c448ac9388093afc0a235cf4b3c4fbced102b
child 302172 c957a53970002745c631f493a47fa589a4b4c1b1
push id5392
push userraliiev@mozilla.com
push dateMon, 14 Dec 2015 20:08:23 +0000
treeherdermozilla-beta@16ce8562a975 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerslth
bugs1215767, 1214006
milestone44.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1215767 - Rewrite the test for bug 1214006 to be more robust r=lth
js/src/jit-test/tests/gc/bug-1214006.js
--- a/js/src/jit-test/tests/gc/bug-1214006.js
+++ b/js/src/jit-test/tests/gc/bug-1214006.js
@@ -1,19 +1,10 @@
 // |jit-test| allow-oom
 
-if (!('oomAtAllocation' in this && 'resetOOMFailure' in this))
+if (!('oomTest' in this))
     quit();
 
 function f() {
-    var i = 1;
-    do {
-        try {
-            oomAtAllocation(i);
-            (function() y)();
-        } catch (e) {
-            x = resetOOMFailure();
-        }
-        i++;
-    } while (x);
+    eval("(function() y)()");
 }
-f();
+oomTest(f);
 fullcompartmentchecks(true);