1
0
Fork 0
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:
Andrew Gvozdev 2010-05-11 14:37:48 +00:00
parent e06bd24516
commit 23734c5141

View file

@ -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);