closes #380: fix toSource() tests

This commit is contained in:
Cameron Kaiser 2017-05-13 20:51:54 -07:00
parent a008a19784
commit f9de6783b9
2 changed files with 4 additions and 7 deletions

View File

@ -8,7 +8,7 @@
var BUGNUMBER = 336409;
var summary = 'Integer overflow in js_obj_toSource';
var actual = 'No Crash';
var expect = 'No Crash';
var expect = /(No Crash|InternalError: allocation size overflow|out of memory)/;
printBugNumber(BUGNUMBER);
printStatus (summary);
@ -42,9 +42,8 @@ try
}
catch(ex)
{
expect = 'InternalError: allocation size overflow';
actual = ex + '';
print(actual);
}
reportCompare(expect, actual, summary);
reportMatch(expect, actual, summary);

View File

@ -8,7 +8,7 @@
var BUGNUMBER = 336410;
var summary = 'Integer overflow in array_toSource';
var actual = 'No Crash';
var expect = 'No Crash';
var expect = /(No Crash|InternalError: allocation size overflow|out of memory)/;
printBugNumber(BUGNUMBER);
printStatus (summary);
@ -42,10 +42,8 @@ try
}
catch(ex)
{
//expect = '\(InternalError: allocation size overflow|out of memory\)';
expect = 'InternalError: allocation size overflow';
actual = ex + '';
print(actual);
}
reportCompare(expect, actual, summary);
reportMatch(expect, actual, summary);