summaryrefslogtreecommitdiffstats
path: root/test/088-monitor-verification
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2011-12-14 14:24:40 -0800
committerElliott Hughes <enh@google.com>2011-12-14 14:24:40 -0800
commitfbef9462e3bf2301dd5b337d351b6b70f7e31bc8 (patch)
tree2a373e07c766109a306f12a8169e57f4f4cfa0a7 /test/088-monitor-verification
parent6f45e8121ab05bb9dee9a039b959346e5476332a (diff)
downloadart-fbef9462e3bf2301dd5b337d351b6b70f7e31bc8.tar.gz
art-fbef9462e3bf2301dd5b337d351b6b70f7e31bc8.tar.bz2
art-fbef9462e3bf2301dd5b337d351b6b70f7e31bc8.zip
Fix 088 the way the test's author intended.
Not only was some of the verification code disabled in dalvik, part of the test was too. This test was _intended_ to check that we fail gracefully when our monitor-enter stack overflows. Re-enable the test, and throw a verification error on overflow. Change-Id: Iaa973633ecc59c3c4810b97ada80eae1e4db3db5
Diffstat (limited to 'test/088-monitor-verification')
-rw-r--r--test/088-monitor-verification/src/Main.java2
1 files changed, 0 insertions, 2 deletions
diff --git a/test/088-monitor-verification/src/Main.java b/test/088-monitor-verification/src/Main.java
index aa90b92dae..b60c71e668 100644
--- a/test/088-monitor-verification/src/Main.java
+++ b/test/088-monitor-verification/src/Main.java
@@ -38,12 +38,10 @@ public class Main {
System.out.println("constantLock ok");
m.notExcessiveNesting();
- if (false) { // TODO: remove when verification is turned on
try {
TooDeep.excessiveNesting();
System.err.println("excessiveNesting did not throw");
} catch (VerifyError ve) {}
- }
System.out.println("excessiveNesting ok");
m.notNested();