diff options
| author | 2018-09-14 10:47:25 +0100 | |
|---|---|---|
| committer | 2018-09-14 10:49:43 +0100 | |
| commit | a42f4e68fe679d74f07fd31818c55c656aa43c48 (patch) | |
| tree | d505947cc03e7566a55f9f5a98c9e51434b43196 /test/602-deoptimizeable/src/Main.java | |
| parent | f07f50e48a05be6fd1554a38932aefebb5cd2958 (diff) | |
Fiddle with 602-deoptimizable for adding debug info when it fails.
The host-x86-gcstress-debug fails continuously, but I cannot
reproduce this locally. Add some debug info to help.
Test: 602-deoptimizable
Change-Id: If0714afbd66d035e517427dc693d4d861ec85dde
Diffstat (limited to 'test/602-deoptimizeable/src/Main.java')
| -rw-r--r-- | test/602-deoptimizeable/src/Main.java | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/test/602-deoptimizeable/src/Main.java b/test/602-deoptimizeable/src/Main.java index d995923f88..f7ce32a42a 100644 --- a/test/602-deoptimizeable/src/Main.java +++ b/test/602-deoptimizeable/src/Main.java @@ -77,7 +77,7 @@ public class Main { assertIsManaged(); // Only single frame is deoptimized. if (res != 79) { System.out.println("Failure 1!"); - System.exit(0); + System.exit(1); } } }); @@ -96,7 +96,7 @@ public class Main { assertIsManaged(); // Only single frame is deoptimized. if (res != 79.3d) { System.out.println("Failure 2!"); - System.exit(0); + System.exit(2); } } catch (Exception e) { e.printStackTrace(System.out); @@ -112,7 +112,7 @@ public class Main { assertIsInterpreted(); // Every deoptimizeable method is deoptimized. if (res != 0.034f) { System.out.println("Failure 3!"); - System.exit(0); + System.exit(3); } } }); @@ -136,9 +136,11 @@ public class Main { if (!DummyObject.sHashCodeInvoked) { System.out.println("hashCode() method not invoked!"); + System.exit(4); } if (map.get(new DummyObject(10)) != 100) { System.out.println("Wrong hashmap value!"); + System.exit(5); } System.out.println("Finishing"); } @@ -163,6 +165,7 @@ public class Main { } if (!caught) { System.out.println("Expected exception"); + System.exit(6); } assertIsInterpreted(); return 79; @@ -188,6 +191,7 @@ public class Main { } if (!caught) { System.out.println("Expected exception"); + System.exit(7); } assertIsInterpreted(); return 79.3d; |