mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-22 06:02:11 +02:00
Tweak comment
This commit is contained in:
parent
3f1aea2339
commit
6a61597cf9
1 changed files with 2 additions and 2 deletions
|
@ -538,7 +538,7 @@ public class ResourceHelper {
|
||||||
String command = "ln -s " + realPath.toOSString() + ' ' + linkedPath.toOSString();
|
String command = "ln -s " + realPath.toOSString() + ' ' + linkedPath.toOSString();
|
||||||
Process process = Runtime.getRuntime().exec(command);
|
Process process = Runtime.getRuntime().exec(command);
|
||||||
|
|
||||||
// Wait for up to 5s...
|
// Wait for up to 2.5s...
|
||||||
for (int i = 0; i < 5; i++) {
|
for (int i = 0; i < 5; i++) {
|
||||||
try {
|
try {
|
||||||
Assert.assertTrue("ln process exited with non-zero status", process.waitFor() == 0);
|
Assert.assertTrue("ln process exited with non-zero status", process.waitFor() == 0);
|
||||||
|
@ -548,7 +548,7 @@ public class ResourceHelper {
|
||||||
// Clear interrupted state, see Java bug http://bugs.sun.com/view_bug.do?bug_id=6420270
|
// Clear interrupted state, see Java bug http://bugs.sun.com/view_bug.do?bug_id=6420270
|
||||||
Thread.interrupted();
|
Thread.interrupted();
|
||||||
}
|
}
|
||||||
// wait for a second before checking again
|
// wait for a 500ms before checking again
|
||||||
try { Thread.sleep(500); } catch (InterruptedException e) {/*don't care*/}
|
try { Thread.sleep(500); } catch (InterruptedException e) {/*don't care*/}
|
||||||
}
|
}
|
||||||
Assert.assertTrue("Symbolic link not created, command=[" + command +"]", linkedPath.toFile().exists());
|
Assert.assertTrue("Symbolic link not created, command=[" + command +"]", linkedPath.toFile().exists());
|
||||||
|
|
Loading…
Add table
Reference in a new issue