db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fuzzylo...@apache.org
Subject svn commit: r427190 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/harness/RunSuite.java
Date Mon, 31 Jul 2006 18:06:49 GMT
Author: fuzzylogic
Date: Mon Jul 31 11:06:48 2006
New Revision: 427190

URL: http://svn.apache.org/viewvc?rev=427190&view=rev
Log:
DERBY-1091: Don't prepend a caret to jvmflags in RunSuite if the suite
properties are empty, but the system property is not. Fixes several tests
for J2ME (j9_foundation).

Committed for Myrna Van Lunteren <m.v.lunteren@gmail.com>

Modified:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/harness/RunSuite.java

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/harness/RunSuite.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/harness/RunSuite.java?rev=427190&r1=427189&r2=427190&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/harness/RunSuite.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/harness/RunSuite.java
Mon Jul 31 11:06:48 2006
@@ -387,10 +387,17 @@
 		// when the time comes to have this converted into actual jvm flags
 		// the ones given at the command line will overwrite whatever's in the suite
 		String jflags = sp.getProperty("jvmflags");
-		if (jflags != null)
+		if (jvmflags != null)
 		{
-		    jvmflags = jvmflags + "^" + jflags;
-		    suiteProperties.put("jvmflags", jvmflags);
+			if (jflags != null)
+		    		suiteProperties.put("jvmflags", (jvmflags + "^" + jflags));
+			else
+		    		suiteProperties.put("jvmflags", jvmflags);
+		}
+		else
+		{
+			if (jflags != null)
+		    		suiteProperties.put("jvmflags", jflags);
 		}
 		String testflags = sp.getProperty("testJavaFlags");
 		if (testflags != null)



Mime
View raw message