harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hinde...@apache.org
Subject svn commit: r887260 - /harmony/enhanced/classlib/trunk/modules/luni/src/test/api/unix/org/apache/harmony/luni/tests/java/io/UnixFileTest.java
Date Fri, 04 Dec 2009 16:45:42 GMT
Author: hindessm
Date: Fri Dec  4 16:45:42 2009
New Revision: 887260

URL: http://svn.apache.org/viewvc?rev=887260&view=rev
Log:
Apply my patch for "[#HARMONY-6391] [classlib][luni]
org.apache.harmony.luni.tests.java.io.UnixFileTest.test_getCanonicalPath
intermittent failure".

Modified:
    harmony/enhanced/classlib/trunk/modules/luni/src/test/api/unix/org/apache/harmony/luni/tests/java/io/UnixFileTest.java

Modified: harmony/enhanced/classlib/trunk/modules/luni/src/test/api/unix/org/apache/harmony/luni/tests/java/io/UnixFileTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/luni/src/test/api/unix/org/apache/harmony/luni/tests/java/io/UnixFileTest.java?rev=887260&r1=887259&r2=887260&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/luni/src/test/api/unix/org/apache/harmony/luni/tests/java/io/UnixFileTest.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/luni/src/test/api/unix/org/apache/harmony/luni/tests/java/io/UnixFileTest.java
Fri Dec  4 16:45:42 2009
@@ -24,7 +24,8 @@
 
 public class UnixFileTest extends TestCase {
 
-    public void test_getCanonicalPath() throws IOException {
+    public void test_getCanonicalPath() throws IOException,
+                                               InterruptedException {
         File tmpFolder1 = new File("folder1");
         tmpFolder1.mkdirs();
         tmpFolder1.deleteOnExit();
@@ -42,7 +43,8 @@
         tmpFolder4.deleteOnExit();
 
         // make a link to folder1/folder2
-        Runtime.getRuntime().exec("ln -s folder1/folder2 folder2");
+        Process ln = Runtime.getRuntime().exec("ln -s folder1/folder2 folder2");
+        ln.waitFor();
         File linkFile = new File("folder2");
         linkFile.deleteOnExit();
 



Mime
View raw message