mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-13 11:15:38 +02:00
bug 311468: JUnit failure: ErrorParserFileMatchingTest - SymbolicLink, intermittent
added troubleshooting assert
This commit is contained in:
parent
e06bd24516
commit
23734c5141
1 changed files with 3 additions and 0 deletions
|
@ -531,6 +531,9 @@ public class ResourceHelper {
|
||||||
throw new UnsupportedOperationException("Windows links .lnk are not supported.");
|
throw new UnsupportedOperationException("Windows links .lnk are not supported.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Assert.assertTrue("Path for symbolic link does not exist: [" + realPath.toOSString() +"]",
|
||||||
|
new File(realPath.toOSString()).exists());
|
||||||
|
|
||||||
IPath linkedPath = project.getLocation().append(linkName);
|
IPath linkedPath = project.getLocation().append(linkName);
|
||||||
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);
|
||||||
|
|
Loading…
Add table
Reference in a new issue