mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-23 17:05:26 +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.");
|
||||
}
|
||||
|
||||
Assert.assertTrue("Path for symbolic link does not exist: [" + realPath.toOSString() +"]",
|
||||
new File(realPath.toOSString()).exists());
|
||||
|
||||
IPath linkedPath = project.getLocation().append(linkName);
|
||||
String command = "ln -s " + realPath.toOSString() + ' ' + linkedPath.toOSString();
|
||||
Process process = Runtime.getRuntime().exec(command);
|
||||
|
|
Loading…
Add table
Reference in a new issue