mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-16 14:55:47 +00:00
JavaScript Tests - update test for bug 338001 to handle various memory pressure scenarios
This commit is contained in:
parent
090fcdcc08
commit
932cb786b0
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user