db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kmars...@apache.org
Subject svn commit: r539608 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/ClientSideSystemPropertiesTest.java
Date Fri, 18 May 2007 21:24:17 GMT
Author: kmarsden
Date: Fri May 18 14:24:16 2007
New Revision: 539608

URL: http://svn.apache.org/viewvc?view=rev&rev=539608
Log:
Change ClientSideSystemPropertiesTest to use mkdir() instead of mkdirs()
to avoid permissions error.


Modified:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/ClientSideSystemPropertiesTest.java

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/ClientSideSystemPropertiesTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/ClientSideSystemPropertiesTest.java?view=diff&rev=539608&r1=539607&r2=539608
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/ClientSideSystemPropertiesTest.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/ClientSideSystemPropertiesTest.java
Fri May 18 14:24:16 2007
@@ -68,7 +68,7 @@
     				public Object run(){
     					File dir = new File(getSystemProperty("derby.client.traceDirectory"));
     					if (dir.exists() == false) //create the trace Directory
-    						junit.framework.Assert.assertTrue(dir.mkdirs());
+    						junit.framework.Assert.assertTrue(dir.mkdir() || dir.mkdirs());
     					else {//cleanup the trace Directory which already exists
     						int fileCounter = 0;
     						File[] list = dir.listFiles();



Mime
View raw message