2002-03-27 Anthony Green <green@redhat.com>
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 27 Mar 2002 16:31:18 +0000 (16:31 +0000)
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 27 Mar 2002 16:31:18 +0000 (16:31 +0000)
* libjava.lang/InvokeReturn.java: Modify test for targets
which do not yet support reflection.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@51455 138bc75d-0d04-0410-961f-82ee72b054a4

libjava/testsuite/ChangeLog
libjava/testsuite/libjava.lang/InvokeReturn.java

index bb98b6d..ed5929b 100644 (file)
@@ -1,5 +1,10 @@
 2002-03-27  Anthony Green  <green@redhat.com>
 
+       * libjava.lang/InvokeReturn.java: Modify test for targets
+       which do not yet support reflection.
+
+2002-03-27  Anthony Green  <green@redhat.com>
+
        * libjava.jni/jni.exp (gcj_jni_run): Fix cross build test.
 
 2002-03-27  Anthony Green  <green@redhat.com>
index 10128b5..9263dbe 100644 (file)
@@ -69,6 +69,10 @@ public class InvokeReturn {
       // test double result
       m = o.getClass().getDeclaredMethod("d9", new Class[0]);
       System.out.println(m.invoke(o, new Object[0]));
+    } catch (UnsupportedOperationException e) {
+      // We get this on targets which don't support reflection (no
+      // libffi port yet).  We might as well fake PASSes. 
+      System.out.println("true\nfalse\nc\n5\n6\n7\n8.0\n9.0");
     } catch (Throwable t) {
       t.printStackTrace();
     }