[kaffe] CVS kaffe (guilhem): Fixed the output of a regression test.
Kaffe CVS
cvs-commits at kaffe.org
Mon Dec 27 10:16:55 PST 2004
PatchSet 5728
Date: 2004/12/27 18:12:27
Author: guilhem
Branch: HEAD
Tag: (none)
Log:
Fixed the output of a regression test.
* test/regression/ProhibitedClass.java: Changed the output to be less
sensitive to the line number fluctuations.
Members:
ChangeLog:1.3272->1.3273
test/regression/ProhibitedClass.java:1.6->1.7
Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.3272 kaffe/ChangeLog:1.3273
--- kaffe/ChangeLog:1.3272 Mon Dec 27 17:27:42 2004
+++ kaffe/ChangeLog Mon Dec 27 18:12:27 2004
@@ -1,5 +1,10 @@
2004-12-27 Guilhem Lavaux <guilhem at kaffe.org>
+ * test/regression/ProhibitedClass.java: Changed the output to be less
+ sensitive to the line number fluctuations.
+
+2004-12-27 Guilhem Lavaux <guilhem at kaffe.org>
+
* kaffe/kaffevm/soft.c
(instanceof_interface): Fixed instanceof implementation. It should
work as expected now (tested against Ant). CSTATE_PREPARED is
Index: kaffe/test/regression/ProhibitedClass.java
diff -u kaffe/test/regression/ProhibitedClass.java:1.6 kaffe/test/regression/ProhibitedClass.java:1.7
--- kaffe/test/regression/ProhibitedClass.java:1.6 Tue Dec 21 16:51:17 2004
+++ kaffe/test/regression/ProhibitedClass.java Mon Dec 27 18:12:31 2004
@@ -18,14 +18,17 @@
is = ClassLoader.getSystemResourceAsStream("java/lang/Object.class");
len = is.read(bc);
- pc.defineClass("java.lang.Object", bc, 0, len);
+ try {
+ pc.defineClass("java.lang.Object", bc, 0, len);
+ } catch (SecurityException e) {
+ if (e.getMessage().startsWith("Prohibited package"))
+ System.out.println("Success.");
+ else
+ e.printStackTrace();
+ }
}
}
/* Expected Output:
-java.lang.SecurityException: Prohibited package: java/lang/Object
- at java.lang.VMClassLoader.defineClass (VMClassLoader.java)
- at java.lang.ClassLoader.defineClass (ClassLoader.java:473)
- at java.lang.ClassLoader.defineClass (ClassLoader.java:438)
- at ProhibitedClass.main (ProhibitedClass.java:21)
+Success.
*/
More information about the kaffe
mailing list