db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kahat...@apache.org
Subject svn commit: r1102620 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/junitTests/compatibility/CompatibilityCombinations.java
Date Fri, 13 May 2011 09:16:13 GMT
Author: kahatlen
Date: Fri May 13 09:16:12 2011
New Revision: 1102620

URL: http://svn.apache.org/viewvc?rev=1102620&view=rev
Log:
DERBY-5222: Compatibility tests fail to delete database directory

Wait for the forked test process to terminate so that it's not modifying the
database directory while the parent process is trying to delete it.

Modified:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/junitTests/compatibility/CompatibilityCombinations.java

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/junitTests/compatibility/CompatibilityCombinations.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/junitTests/compatibility/CompatibilityCombinations.java?rev=1102620&r1=1102619&r2=1102620&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/junitTests/compatibility/CompatibilityCombinations.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/junitTests/compatibility/CompatibilityCombinations.java
Fri May 13 09:16:12 2011
@@ -729,6 +729,7 @@ public class CompatibilityCombinations e
             Process proc = Runtime.getRuntime().exec(fullCmd,envElements,workingDir);
             PrintWriter out = new PrintWriter(new FileWriter(workingDirName+PS+combinationName));
             String result = testOutput(proc, out); // Scans test report for OK and Time...
+            proc.waitFor();
             if ( result.indexOf(" OK ") != -1 ) testOK = true;
             result= combinationName+":" + result;
             summaryFile.println(result);



Mime
View raw message