db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From myrn...@apache.org
Subject svn commit: r1071545 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/store/InterruptResilienceTest.java
Date Thu, 17 Feb 2011 08:27:16 GMT
Author: myrnavl
Date: Thu Feb 17 08:27:16 2011
New Revision: 1071545

URL: http://svn.apache.org/viewvc?rev=1071545&view=rev
Log:
DERBY-4463; JMX test in nightly test suite failed with: JMXTest:clientjava.lang.InterruptedException
DERBY-5028; InterruptResilienceTest passes with IBM 1.6 SR9 but creates javacore dumps
  Adjusted the skipping of this test with ibm jvms to only skip with 1.5;
  Added setting of derby.stream.error.extendedDiagSeverityLevel to 50000 to
  prevent unnecessary javacore dump files. 


Modified:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/store/InterruptResilienceTest.java

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/store/InterruptResilienceTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/store/InterruptResilienceTest.java?rev=1071545&r1=1071544&r2=1071545&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/store/InterruptResilienceTest.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/store/InterruptResilienceTest.java
Thu Feb 17 08:27:16 2011
@@ -71,6 +71,11 @@ public class InterruptResilienceTest ext
         Properties p = new Properties();
         p.put("derby.system.durability", "test");
         p.put("derby.infolog.append", "true");
+        // we'll force interrupts and thus serious errors, which with
+        // ibm jvms would result in javacore files, which aren't of 
+        // interest if the test passes. Setting the stream error level 
+        // so we don't get those javacores.
+        p.put("derby.stream.error.extendedDiagSeverityLevel", "50000");
 
         suite.addTest(
                 new SystemPropertyTestSetup(est, p, true));
@@ -85,10 +90,14 @@ public class InterruptResilienceTest ext
         String testName = "InterruptResilienceTest";
 
         if (! isSunJVM()) {
-            // DERBY-4463 test fails on IBM VMs. Remove this
-            // exception when that issue is solved.
-            println("Test skipped for this VM, cf. DERBY-4463");
-            return new TestSuite(testName);
+            // DERBY-4463 test fails on IBM VM 1.5.
+            // It's fixed in IBM VM 1.6 SR9 and above.
+            // Remove this condition when that issue is solved in IBM VM 1.5 SR13.
+            if (getSystemProperty("java.version").startsWith("1.5.0"))
+            {
+                println("Test skipped for this VM, cf. DERBY-4463");
+                return new TestSuite(testName);
+            }
         }
 
         if (!JDBC.vmSupportsJDBC3()) {



Mime
View raw message