You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-commits@db.apache.org by ka...@apache.org on 2011/05/13 11:16:13 UTC
svn commit: r1102620 -
/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/junitTests/compatibility/CompatibilityCombinations.java
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);