Better error detection in some java testcases

This commit is contained in:
William S Fulton 2014-03-01 16:14:36 +00:00
commit 09cfc53bdf
6 changed files with 31 additions and 40 deletions

View file

@ -22,8 +22,7 @@ public class dynamic_cast_runme {
// Note it is possible to downcast y with a Java cast.
String a = dynamic_cast.do_test((Bar)y);
if (!a.equals("Bar::test")) {
System.err.println("Failed!");
System.exit(1);
throw new RuntimeException("Failed!");
}
}
}