mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
bug 387730: Better failure message in the unit test
This commit is contained in:
parent
50cbcd2c21
commit
cb6f2c2947
2 changed files with 5 additions and 2 deletions
|
@ -937,10 +937,13 @@ public class ErrorParserFileMatchingTest extends TestCase {
|
|||
// Skip the test if Cygwin is not available.
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
assertTrue("usrIncludeWindowsPath=["+usrIncludeWindowsPath+"]",
|
||||
usrIncludeWindowsPath.charAt(1)==IPath.DEVICE_SEPARATOR);
|
||||
|
||||
java.io.File file = new java.io.File(usrIncludeWindowsPath + "\\" + fileName);
|
||||
assertTrue("File " + file + " does not exist, check your cygwin installation", file.exists());
|
||||
|
||||
ResourceHelper.createLinkedFolder(fProject, "include", usrIncludeWindowsPath);
|
||||
|
||||
parseOutput(cygwinFolder+fileName+":1:error");
|
||||
|
|
|
@ -457,7 +457,7 @@ public class ResourceHelper {
|
|||
*/
|
||||
public static IFolder createLinkedFolder(IProject project, String folderLink, IPath realFolder) throws CoreException {
|
||||
IFolder folder = project.getFolder(folderLink);
|
||||
folder.createLink(realFolder, IResource.REPLACE, null);
|
||||
folder.createLink(realFolder, IResource.REPLACE | IResource.ALLOW_MISSING_LOCAL, null);
|
||||
Assert.assertTrue(folder.exists());
|
||||
resourcesCreated.add(folder);
|
||||
return folder;
|
||||
|
|
Loading…
Add table
Reference in a new issue