Regression test driver now can read different expected output files
[cacao.git] / tests / regression / extest.java
index 4a91243b98dbeed4f7a3c65737cd07cb1a08c894..7408c8ee1c657c925558b7e8acd9dc5d7e975756 100644 (file)
@@ -133,8 +133,8 @@ public class extest {
 
         try {
             p("OutOfMemoryError:");
-           /* use twice the heap size */
-           byte[] ba = new byte[maxmem * 2];
+           /* maxmem + 1 should be enough and hopefully not overflow the int so it becomes negative */
+           byte[] ba = new byte[maxmem];
             failed();
         } catch (OutOfMemoryError e) {
            ok();