зеркало из https://github.com/mozilla/gecko-dev.git
bug 524743 - js1_8_1/regress/regress-524743.js must turn off gczeal(2) before exiting; skip in debug browser due to hang.
This commit is contained in:
Родитель
7f7cf603e6
Коммит
a240697e7b
|
@ -80,4 +80,4 @@ script regress-507053.js
|
|||
script regress-507295.js
|
||||
script regress-507424.js
|
||||
script regress-515885.js
|
||||
script regress-524743.js
|
||||
skip-if(isDebugBuild&&!xulRuntime.shell) script regress-524743.js # hang
|
||||
|
|
|
@ -1,12 +1,20 @@
|
|||
// Any copyright is dedicated to the Public Domain.
|
||||
// http://creativecommons.org/licenses/publicdomain/
|
||||
if (typeof gczeal != 'undefined')
|
||||
gczeal(2);
|
||||
if (typeof gc != 'undefined') {
|
||||
var obj = {};
|
||||
for (var i = 0; i < 50; i++) {
|
||||
obj["_" + i] = 0;
|
||||
gc();
|
||||
gTestfile = 'regress-524743';
|
||||
|
||||
if (typeof gczeal != 'undefined' && typeof gc != 'undefined') {
|
||||
try
|
||||
{
|
||||
gczeal(2);
|
||||
var obj = {};
|
||||
for (var i = 0; i < 50; i++) {
|
||||
obj["_" + i] = 0;
|
||||
gc();
|
||||
}
|
||||
}
|
||||
catch(ex)
|
||||
{
|
||||
}
|
||||
gczeal(0);
|
||||
}
|
||||
reportCompare("no assertion failure", "no assertion failure", "bug 524743");
|
||||
|
|
Загрузка…
Ссылка в новой задаче