Commit 11056ec1 authored by Eric Faust's avatar Eric Faust
Browse files

Bug 1496297 - Use |jit-test| skip-if as appropriate in jit-test/tests/basic/ (r=jorendorff)

--HG--
extra : rebase_source : ba3a1186572935b06dedf780648d35f83f0cdb30
parent d9e955cc
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
// |jit-test| allow-oom

if (!('oomAtAllocation' in this))
    quit();
// |jit-test| allow-oom; skip-if: !('oomAtAllocation' in this)

for (let a of [
        null, function() {}, function() {}, null, function() {}, function() {},
+0 −4
Original line number Diff line number Diff line
// |jit-test| allow-oom

// Adapted from randomly chosen testcase: js/src/jit-test/tests/debug/bug-1238610.js
load(libdir + "../tests/basic/bug-1271507.js");
+1 −4
Original line number Diff line number Diff line
// |jit-test| allow-oom
if (typeof oomAfterAllocations != "function")
  quit();

// |jit-test| allow-oom; skip-if: typeof oomAfterAllocations !== 'function'
lfcode = new Array();
oomAfterAllocations(100);
loadFile(file);
+1 −4
Original line number Diff line number Diff line
// |jit-test| allow-oom; allow-unhandlable-oom

if (!("oomAtAllocation" in this && "resetOOMFailure" in this))
    quit();
// |jit-test| allow-oom; allow-unhandlable-oom; skip-if: !("oomAtAllocation" in this && "resetOOMFailure" in this)

function oomTest(f) {
    var i = 1;
+1 −2
Original line number Diff line number Diff line
if (!('oomTest' in this))
  quit();
// |jit-test| skip-if: !('oomTest' in this)

oomTest(() => {
    var max = 400;
Loading