db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From myrn...@apache.org
Subject svn commit: r1227016 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/BaseTestCase.java
Date Wed, 04 Jan 2012 01:35:07 GMT
Author: myrnavl
Date: Wed Jan  4 01:35:07 2012
New Revision: 1227016

URL: http://svn.apache.org/viewvc?rev=1227016&view=rev
Log:
DERBY-5558; NullPointerException in store.RecoveryTest launchRecoveryInsert and failure in
testBasicRecovery with weme 6.2
  working around this issue by tacking on emma.active value for this jvm forking.

Modified:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/BaseTestCase.java

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/BaseTestCase.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/BaseTestCase.java?rev=1227016&r1=1227015&r2=1227016&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/BaseTestCase.java (original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/BaseTestCase.java Wed Jan
 4 01:35:07 2012
@@ -544,7 +544,14 @@ public abstract class BaseTestCase
 	    ArrayList cmdlist = new ArrayList();
 	    cmdlist.add(getJavaExecutableName());
 	    if (isJ9Platform())
+	    {
 	        cmdlist.add("-jcl:foun11");
+            // also add the setting for emma.active so any tests
+            // that fork will work correctly. See DERBY-5558.
+            String emmaactive=getSystemProperty("emma.active");
+            if (emmaactive != null)
+                cmdlist.add("-Demma.active=" + emmaactive);            
+	    }
 	    cmdlist.add("-classpath");
 	    cmdlist.add(getSystemProperty("java.class.path"));
 	    for (int i =0; i < cmd.length;i++) {



Mime
View raw message