Bug 1496297 - Use |jit-test| skip-if as appropriate in jit-test/tests/baseline/ (r=jorendorff)
authorEric Faust <efausbmo@gmail.com>
Tue, 09 Oct 2018 15:41:50 -0700
changeset 496122 bb27fccdb19cf4a76b314ed4314f20651af6224a
parent 496121 cb0c1944852bbeaebc2f023a6d5a60a4a2a7f403
child 496123 5140037f3a175d0dede0334706a98aa335efd3c3
push id9984
push userffxbld-merge
push dateMon, 15 Oct 2018 21:07:35 +0000
treeherdermozilla-beta@183d27ea8570 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjorendorff
bugs1496297
milestone64.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 1496297 - Use |jit-test| skip-if as appropriate in jit-test/tests/baseline/ (r=jorendorff)
js/src/jit-test/tests/baseline/bug1209585.js
js/src/jit-test/tests/baseline/bug1247862.js
js/src/jit-test/tests/baseline/bug1344334.js
js/src/jit-test/tests/baseline/bug1491337.js
js/src/jit-test/tests/baseline/bug1491350.js
--- a/js/src/jit-test/tests/baseline/bug1209585.js
+++ b/js/src/jit-test/tests/baseline/bug1209585.js
@@ -1,13 +1,9 @@
-if (helperThreadCount() == 0)
-    quit();
-
-if (!("oomAtAllocation" in this && "resetOOMFailure" in this))
-    quit();
+// |jit-test| skip-if: helperThreadCount() === 0 || !('oomAtAllocation' in this)
 
 if ("gczeal" in this)
     gczeal(0);
 
 eval("g=function() {}")
 var lfGlobal = newGlobal();
 for (lfLocal in this) {
     if (!(lfLocal in lfGlobal)) {
--- a/js/src/jit-test/tests/baseline/bug1247862.js
+++ b/js/src/jit-test/tests/baseline/bug1247862.js
@@ -1,10 +1,9 @@
-if (!this.hasOwnProperty("TypedObject"))
-  quit();
+// |jit-test| skip-if: !this.hasOwnProperty("TypedObject")
 
 var T = TypedObject;
 ValueStruct = new T.StructType({
     f: T.int32,
     g: T.Any
 });
 var v = new ValueStruct;
 for (var i = 0; i < 2; i++) {
--- a/js/src/jit-test/tests/baseline/bug1344334.js
+++ b/js/src/jit-test/tests/baseline/bug1344334.js
@@ -1,10 +1,9 @@
-if (!('oomTest' in this))
-    quit();
+// |jit-test| skip-if: !('oomTest' in this)
 
 function f(s) {
     s + "x";
     s.indexOf("y") === 0;
     oomTest(new Function(s));
 }
 var s = `
     class TestClass { constructor() {} }
--- a/js/src/jit-test/tests/baseline/bug1491337.js
+++ b/js/src/jit-test/tests/baseline/bug1491337.js
@@ -1,10 +1,9 @@
-if (!('oomTest' in this))
-    quit();
+// |jit-test| skip-if: !('oomTest' in this)
 
 oomTest(new Function(`
   let kJSEmbeddingMaxTypes = 1000000;
   let kJSEmbeddingMaxFunctions = 1000000;
   let kJSEmbeddingMaxImports = 100000;
   const known_failures = {};
   function test(func, description) {
     known_failures[description]
--- a/js/src/jit-test/tests/baseline/bug1491350.js
+++ b/js/src/jit-test/tests/baseline/bug1491350.js
@@ -1,10 +1,9 @@
-if (!('oomTest' in this))
-  quit();
+// |jit-test| skip-if: !('oomTest' in this)
 
 oomTest(new Function(`
   var a = ['p', 'q', 'r', 's', 't'];
   var o = {p:1, q:2, r:3, s:4, t:5};
   for (var i in o)
     delete o[i];
   for (var i of a)
     o.hasOwnProperty(undefined + this, false);