summaryrefslogtreecommitdiff
path: root/libjava
diff options
context:
space:
mode:
authorTom Tromey <tromey@cygnus.com>2000-04-20 19:49:14 +0000
committerTom Tromey <tromey@gcc.gnu.org>2000-04-20 19:49:14 +0000
commitdea4b2db61b4c3da88ca546997d1dff589c2ac5e (patch)
treef8ae33dfeb29a7e8ce38444420a13f285a165d35 /libjava
parent1368ee700d0d2fd0f0c118e182dda14218dcff5b (diff)
downloadgcc-dea4b2db61b4c3da88ca546997d1dff589c2ac5e.tar.gz
throwit.out: Fixed output to be correct.
* libjava.jni/throwit.out: Fixed output to be correct. * libjava.jni/noclass.java (main): `find_it' throws an exception. From-SVN: r33291
Diffstat (limited to 'libjava')
-rw-r--r--libjava/testsuite/ChangeLog6
-rw-r--r--libjava/testsuite/libjava.jni/noclass.java13
-rw-r--r--libjava/testsuite/libjava.jni/throwit.out4
3 files changed, 18 insertions, 5 deletions
diff --git a/libjava/testsuite/ChangeLog b/libjava/testsuite/ChangeLog
index 6e7897bdc2f..058f9ab90eb 100644
--- a/libjava/testsuite/ChangeLog
+++ b/libjava/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2000-04-20 Tom Tromey <tromey@cygnus.com>
+
+ * libjava.jni/throwit.out: Fixed output to be correct.
+
+ * libjava.jni/noclass.java (main): `find_it' throws an exception.
+
2000-04-16 Anthony Green <green@redhat.com>
* libjava.compile/PR209.java: New file.
diff --git a/libjava/testsuite/libjava.jni/noclass.java b/libjava/testsuite/libjava.jni/noclass.java
index cfa1178f03c..7e0b8c34cca 100644
--- a/libjava/testsuite/libjava.jni/noclass.java
+++ b/libjava/testsuite/libjava.jni/noclass.java
@@ -11,8 +11,15 @@ public class noclass
public static void main (String[] args)
{
- find_it ();
- // If find_it() causes a crash, we won't be running this next line.
- System.out.println ("Ok");
+ try
+ {
+ find_it ();
+ }
+ catch (Throwable _)
+ {
+ // If find_it() causes a crash, or doesn't throw an exception,
+ // we won't be running this next line.
+ System.out.println ("Ok");
+ }
}
}
diff --git a/libjava/testsuite/libjava.jni/throwit.out b/libjava/testsuite/libjava.jni/throwit.out
index 8c75e99fcbd..c50b7a9abbc 100644
--- a/libjava/testsuite/libjava.jni/throwit.out
+++ b/libjava/testsuite/libjava.jni/throwit.out
@@ -1,4 +1,4 @@
class java.lang.UnknownError
-the word is zardoz
-class java.lang.Throwable
zardoz is the word
+class java.lang.Throwable
+the word is zardoz