Skip to content

Commit

Permalink
JavaScript Tests - gczeal should be guarded, bug 456292
Browse files Browse the repository at this point in the history
  • Loading branch information
Bob Clary committed Sep 21, 2008
1 parent ddf6e7c commit 32d909b
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 11 deletions.
18 changes: 12 additions & 6 deletions js/tests/js1_5/extensions/regress-452168.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,20 @@ function test()
printBugNumber(BUGNUMBER);
printStatus (summary);

jit(true);
gczeal(2);
if (typeof gczeal == 'undefined')
{
expect = actual = 'Test requires gczeal, skipped.';
}
else
{
jit(true);
gczeal(2);

var a, b; gczeal(2); (function() { for (var p in this) { } })();

gczeal(0);
jit(false);
var a, b; gczeal(2); (function() { for (var p in this) { } })();

gczeal(0);
jit(false);
}
reportCompare(expect, actual, summary);

exitFunc ('test');
Expand Down
17 changes: 12 additions & 5 deletions js/tests/js1_6/extensions/regress-455464-04.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,20 @@ function test()
printBugNumber(BUGNUMBER);
printStatus (summary);

jit(true);
gczeal(2);
if (typeof gczeal == 'undefined')
{
expect = actual = 'Test requires gczeal, skipped.';
}
else
{
jit(true);
gczeal(2);

a=b=c=d=0; this.__defineGetter__('g', gc); for each (y in this);
a=b=c=d=0; this.__defineGetter__('g', gc); for each (y in this);

gczeal(0);
jit(false);
gczeal(0);
jit(false);
}

reportCompare(expect, actual, summary);

Expand Down

0 comments on commit 32d909b

Please sign in to comment.