This is the mail archive of the mauve-discuss@sources.redhat.com mailing list for the Mauve project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

FYI: Adding RuntimeException checks


Hi,

While testing libgcj a saw a couple of FAILs due to uncaught exceptions.
I have added explicit catch blocks (which fail) to a number of tests
that throw RuntimeExceptions when run with libgcj.

This should not impact any other platforms that do not throw these
unexpected RuntimeExceptions and lets the rest of the test complete
normally instead of just aborting in the middle with libgcj.

2002-04-02  Mark Wielaard  <mark@klomp.org>

  * gnu/testlet/java/beans/Introspector/jdk11.java (tryone): Catch all
  Throwables.
  * gnu/testlet/java/lang/Float/FloatTest.java (test_valueOf): Catch
  more Exceptions.
  * gnu/testlet/java/lang/Integer/getInteger.java (test): Catch
  NullPointerException.
  * gnu/testlet/java/lang/Long/LongTest.java (test_getLong): Likewise.
  * gnu/testlet/java/lang/Long/getLong.java (test): Likewise.
  * gnu/testlet/java/net/DatagramSocket/DatagramSocketTest2.java
  (invalid_receive_data): Catch IllegalArgumentException.
  * gnu/testlet/java/net/InetAddress/InetAddressTest.java (test_Basics):
  Catch NullPointerException.
  * gnu/testlet/java/util/AbstractMap/AcuniaAbstractMapTest.java
  (test_putAll): Catch NoSuchElementException.
  * gnu/testlet/java/util/HashMap/AcuniaHashMapTest.java
  (test_entrySet): Catch ConcurrentModificationException.
  * gnu/testlet/java/util/Vector/AcuniaVectorTest.java
  (test_removeRange): Catch IllegalArgumentException.

Note that some of these exceptions might be thrown validly according to
the spec. I have not yet checked.

Cheers,

Mark


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]