From 54c542feeb9024d54819dd1f78c6429458d0dc4f Mon Sep 17 00:00:00 2001 From: "bclary@bclary.com" Date: Fri, 28 Mar 2008 12:14:45 -0700 Subject: [PATCH] JavaScript Tests - update test for bug 338001 to handle various memory pressure scenarios --- js/tests/js1_5/Function/regress-338001.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/js/tests/js1_5/Function/regress-338001.js b/js/tests/js1_5/Function/regress-338001.js index 58f4189d620..7952b0e9954 100755 --- a/js/tests/js1_5/Function/regress-338001.js +++ b/js/tests/js1_5/Function/regress-338001.js @@ -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);