diff options
| author | jeffhao <jeffhao@google.com> | 2011-09-30 18:34:35 -0700 |
|---|---|---|
| committer | jeffhao <jeffhao@google.com> | 2011-09-30 18:34:35 -0700 |
| commit | 795d78f4d04c8d007bf2bdf2ed4131379bcf19c7 (patch) | |
| tree | 9d6288a561f82997ddd60ee0109949a65807cb79 /test/003-omnibus-opcodes/src/Main.java | |
| parent | d2e0f90f0ab743743c4bb893b2a694b366b2b147 (diff) | |
| download | art-795d78f4d04c8d007bf2bdf2ed4131379bcf19c7.tar.gz art-795d78f4d04c8d007bf2bdf2ed4131379bcf19c7.tar.bz2 art-795d78f4d04c8d007bf2bdf2ed4131379bcf19c7.zip | |
Old tests run with new system.
The tests are ported and run with the new system, though many currently
don't pass. Some of the tests also need additional fixing to run
properly.
Change-Id: I3263cf5dcb0fe064a3e6c02e4aa1bb9a067f64c7
Diffstat (limited to 'test/003-omnibus-opcodes/src/Main.java')
| -rw-r--r-- | test/003-omnibus-opcodes/src/Main.java | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/test/003-omnibus-opcodes/src/Main.java b/test/003-omnibus-opcodes/src/Main.java index fb39d76d7b..eecead0073 100644 --- a/test/003-omnibus-opcodes/src/Main.java +++ b/test/003-omnibus-opcodes/src/Main.java @@ -22,15 +22,6 @@ public class Main { * Start up. */ public static void main(String[] args) { - boolean assertEnabled = false; - assert assertEnabled = true; - if (!assertEnabled) { - System.out.println("FAIL: assert doesn't work (specify '-ea')\n"); - throw new RuntimeException(); - } else { - System.out.println("(assertions are enabled)"); - } - Main main = new Main(); main.run(); @@ -79,4 +70,10 @@ public class Main { } InternedString.run(); } + + public static void assertTrue(boolean condition) { + if (!condition) { + throw new Error(); + } + } } |
