Better error detection in some java testcases
This commit is contained in:
parent
736c6b953e
commit
09cfc53bdf
6 changed files with 31 additions and 40 deletions
|
|
@ -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!");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue