diff options
author | green <green@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-06-02 09:18:14 +0000 |
---|---|---|
committer | green <green@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-06-02 09:18:14 +0000 |
commit | 63cc69a5bf83ab19a61f7b6c1ca35b217c39cafd (patch) | |
tree | 5210aef71259914c5e11d2caf65c4f24c76d4e89 /libjava/testsuite | |
parent | e581835cee6f3f43dbbd4d3ab45511a13dfb43ac (diff) | |
download | gcc-63cc69a5bf83ab19a61f7b6c1ca35b217c39cafd.tar.gz |
Fake a PASS for targets which don't support invocation.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@42792 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/testsuite')
-rw-r--r-- | libjava/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | libjava/testsuite/libjava.lang/invokethrow.java | 6 |
2 files changed, 11 insertions, 0 deletions
diff --git a/libjava/testsuite/ChangeLog b/libjava/testsuite/ChangeLog index b149ea6efb1..41ce7adbed5 100644 --- a/libjava/testsuite/ChangeLog +++ b/libjava/testsuite/ChangeLog @@ -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. diff --git a/libjava/testsuite/libjava.lang/invokethrow.java b/libjava/testsuite/libjava.lang/invokethrow.java index df7262679bb..8cf3ca0a51b 100644 --- a/libjava/testsuite/libjava.lang/invokethrow.java +++ b/libjava/testsuite/libjava.lang/invokethrow.java @@ -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 _) { } |