Rhino shell has been updated to exit with code 3, not 1 on OutOfMemory/StackOverflow exceptions.

This commit is contained in:
pschwartau%netscape.com 2003-08-03 18:20:24 +00:00
Родитель eb7dc90a5b
Коммит c0ed4e801d
1 изменённых файлов: 3 добавлений и 7 удалений

Просмотреть файл

@ -64,9 +64,9 @@
*
* We only want to test that we don't CRASH on the sort. So it will be OK
* if we get the JS "out of memory" error. Note this terminates the test
* with exit code 1 in Rhino and exit code 3 in SpiderMonkey. Therefore we put
* with exit code 3. Therefore we put
*
* |expectExitCode(n = 1,3)|
* |expectExitCode(3);|
*
* The only problem will arise if the JS shell ever DOES have enough memory
* to do the sort. Then this test will terminate with the normal exit code 0
@ -116,13 +116,9 @@ var summary = "Testing that Array.sort() doesn't crash on very large arrays";
printBugNumber(bug);
printStatus(summary);
expectExitCode(3);
var IN_RHINO = inRhino();
if (IN_RHINO)
expectExitCode(1);
else
expectExitCode(3);
if (!IN_RHINO)
{
var a1=Array(0xFFFFFFFF);