Index: modules/luni/src/test/api/unix/org/apache/harmony/luni/tests/java/io/UnixFileTest.java =================================================================== --- modules/luni/src/test/api/unix/org/apache/harmony/luni/tests/java/io/UnixFileTest.java (revision 884454) +++ modules/luni/src/test/api/unix/org/apache/harmony/luni/tests/java/io/UnixFileTest.java (working copy) @@ -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();