JavaScript Tests - update test for bug 338001 to handle various memory pressure scenarios

This commit is contained in:
bclary@bclary.com 2008-03-28 12:14:45 -07:00
parent aebd4594a0
commit 54c542feeb

View File

@ -40,7 +40,7 @@ var gTestfile = 'regress-338001.js';
var BUGNUMBER = 338001;
var summary = 'integer overflow in jsfun.c:Function';
var actual = 'No Crash';
var expect = 'No Crash';
var expect = /No Crash|InternalError: allocation size overflow|InternalError: script stack space quota is exhausted/;
printBugNumber(BUGNUMBER);
printStatus (summary);
@ -66,10 +66,9 @@ try
catch(ex)
{
// handle changed 1.9 branch behavior. see bug 422348
expect = 'InternalError: allocation size overflow';
actual = ex + '';
}
print('Done');
print('Done: ' + actual);
reportCompare(expect, actual, summary);
reportMatch(expect, actual, summary);