Fake a PASS for targets which don't support invocation.
authorgreen <green@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 2 Jun 2001 09:18:14 +0000 (09:18 +0000)
committergreen <green@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 2 Jun 2001 09:18:14 +0000 (09:18 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@42792 138bc75d-0d04-0410-961f-82ee72b054a4

libjava/testsuite/ChangeLog
libjava/testsuite/libjava.lang/invokethrow.java

index b149ea6..41ce7ad 100644 (file)
@@ -1,3 +1,8 @@
+2001-06-02  Anthony Green  <green@redhat.com>
+
+       * libjava.lang/invokethrow.java: Fake a pass for systems which
+       don't support invocation.
+
 2001-05-30  Tom Tromey  <tromey@redhat.com>
 
        * libjava.lang/invokethrow.out: New file.
index df72626..8cf3ca0 100644 (file)
@@ -22,6 +22,12 @@ public class invokethrow
       {
        System.out.println (x1.getTargetException ().getMessage ());
       }
+    catch (UnsupportedOperationException _)
+      {
+       // Some systems don't support invocation, in which case we
+       // will fake a passing result.
+       System.out.println ("hi!");
+      }
     catch (Throwable _)
       {
       }