Bug 1496297 - Use |jit-test| skip-if as appropriate in jit-test/tests/auto-regress/ (r=jorendorff)
authorEric Faust <efausbmo@gmail.com>
Tue, 09 Oct 2018 15:41:50 -0700
changeset 498835 5140037f3a175d0dede0334706a98aa335efd3c3
parent 498834 bb27fccdb19cf4a76b314ed4314f20651af6224a
child 498836 b95948e9a1265a7d707f2d70d78f50bd99a3131f
push id1864
push userffxbld-merge
push dateMon, 03 Dec 2018 15:51:40 +0000
treeherdermozilla-release@f040763d99ad [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/auto-regress/ (r=jorendorff)
js/src/jit-test/tests/auto-regress/bug1263558.js
js/src/jit-test/tests/auto-regress/bug1263865.js
js/src/jit-test/tests/auto-regress/bug1263879.js
js/src/jit-test/tests/auto-regress/bug1264823.js
js/src/jit-test/tests/auto-regress/bug1268034.js
js/src/jit-test/tests/auto-regress/bug1269074.js
js/src/jit-test/tests/auto-regress/bug1375446.js
js/src/jit-test/tests/auto-regress/bug1462341.js
js/src/jit-test/tests/auto-regress/bug1466626-1.js
js/src/jit-test/tests/auto-regress/bug1466626-2.js
js/src/jit-test/tests/auto-regress/bug1466626-3.js
js/src/jit-test/tests/auto-regress/bug1466626-4.js
--- a/js/src/jit-test/tests/auto-regress/bug1263558.js
+++ b/js/src/jit-test/tests/auto-regress/bug1263558.js
@@ -1,10 +1,9 @@
-if (!('oomTest' in this))
-    quit();
+// |jit-test| skip-if: !('oomTest' in this)
 
 evalcx(`
     eval('\
         var appendToActual = function(s) {};\
         gczeal = function() {};\
         gcslice = function() {};\
         selectforgc = function() {};\
         if (!("verifyprebarriers" in this)) {\
--- a/js/src/jit-test/tests/auto-regress/bug1263865.js
+++ b/js/src/jit-test/tests/auto-regress/bug1263865.js
@@ -1,10 +1,9 @@
-if (!('oomTest' in this))
-    quit();
+// |jit-test| skip-if: !('oomTest' in this)
 
 loadFile("");
 loadFile("");
 loadFile("Array.prototype.splice.call(1)");
 function loadFile(lfVarx) {
     parseInt("1");
     oomTest(function() {
         eval(lfVarx);
--- a/js/src/jit-test/tests/auto-regress/bug1263879.js
+++ b/js/src/jit-test/tests/auto-regress/bug1263879.js
@@ -1,10 +1,9 @@
-if (!('oomTest' in this))
-    quit();
+// |jit-test| skip-if: !('oomTest' in this)
 
 var lines = `
 
 
 
 "".replace([[2], 3])
 `.split('\n');
 var code = "";
--- a/js/src/jit-test/tests/auto-regress/bug1264823.js
+++ b/js/src/jit-test/tests/auto-regress/bug1264823.js
@@ -1,10 +1,9 @@
-if (!('oomTest' in this))
-    quit();
+// |jit-test| skip-if: !('oomTest' in this)
 
 loadFile("");
 loadFile("");
 loadFile(` function lalala() {}
     new Map([[1, 2]]).forEach(lalala)
     `);
 function loadFile(lfVarx) {
     return oomTest(function() {
--- a/js/src/jit-test/tests/auto-regress/bug1268034.js
+++ b/js/src/jit-test/tests/auto-regress/bug1268034.js
@@ -1,7 +1,6 @@
-if (!('oomTest' in this))
-    quit();
+// |jit-test| skip-if: !('oomTest' in this)
 
 oomTest(function() {
     offThreadCompileScript("");
 });
 "".match();
--- a/js/src/jit-test/tests/auto-regress/bug1269074.js
+++ b/js/src/jit-test/tests/auto-regress/bug1269074.js
@@ -1,6 +1,3 @@
-// |jit-test| allow-oom
-
-if (!('oomTest' in this))
-    quit();
+// |jit-test| allow-oom; skip-if: !('oomTest' in this)
 
 evalcx('oomTest(function() { Array(...""); })', newGlobal());
--- a/js/src/jit-test/tests/auto-regress/bug1375446.js
+++ b/js/src/jit-test/tests/auto-regress/bug1375446.js
@@ -1,12 +1,9 @@
-// |jit-test| allow-oom
-
-if (!('oomTest' in this))
-    quit();
+// |jit-test| allow-oom; skip-if: !('oomTest' in this)
 
 loadFile(`
     disassemble(function() {
 	return assertDeepEq(x.concat(obj), [1, 2, 3, "hey"]);
     })
 `);
 function loadFile(lfVarx) {
     oomTest(new Function(lfVarx));
--- a/js/src/jit-test/tests/auto-regress/bug1462341.js
+++ b/js/src/jit-test/tests/auto-regress/bug1462341.js
@@ -1,12 +1,9 @@
-// |jit-test| allow-oom
-
-if (!('oomTest' in this))
-  quit();
+// |jit-test| allow-oom; skip-if: !('oomTest' in this)
 
 loadFile(`
   switch (0) {
     case (-1):
   }
 `);
 function loadFile(lfVarx) {
   oomTest(function() {
--- a/js/src/jit-test/tests/auto-regress/bug1466626-1.js
+++ b/js/src/jit-test/tests/auto-regress/bug1466626-1.js
@@ -1,8 +1,7 @@
-if (!("oomTest" in this))
-    quit();
+// |jit-test| skip-if: !('oomTest' in this)
 
 oomTest(function() {
     for (var i = 0; i < 10; ++i) {
         Promise.resolve().then();
     }
 });
--- a/js/src/jit-test/tests/auto-regress/bug1466626-2.js
+++ b/js/src/jit-test/tests/auto-regress/bug1466626-2.js
@@ -1,10 +1,9 @@
-if (!("oomTest" in this))
-    quit();
+// |jit-test| skip-if: !('oomTest' in this)
 
 var globals = [];
 for (var i = 0; i < 24; ++i) {
     var g = newGlobal();
     g.eval(`
         function f(){}
         var env = {};
     `);
--- a/js/src/jit-test/tests/auto-regress/bug1466626-3.js
+++ b/js/src/jit-test/tests/auto-regress/bug1466626-3.js
@@ -1,10 +1,9 @@
-if (!("oomTest" in this))
-    quit();
+// |jit-test| skip-if: !('oomTest' in this)
 
 var g = newGlobal();
 
 var i = 0;
 oomTest(function() {
     var s = String.fromCharCode((i++) & 0xffff);
     var r = "";
     for (var j = 0; j < 1000; ++j) {
--- a/js/src/jit-test/tests/auto-regress/bug1466626-4.js
+++ b/js/src/jit-test/tests/auto-regress/bug1466626-4.js
@@ -1,10 +1,9 @@
-if (!("oomTest" in this))
-    quit();
+// |jit-test| skip-if: !('oomTest' in this)
 
 var source = "{";
 for (var i = 0; i < 120; ++i)
     source += `function f${i}(){}`
 source += "}";
 
 oomTest(function() {
     Function(source);