diff --git a/build/org.eclipse.cdt.managedbuilder.core.tests/suite/org/eclipse/cdt/managedbuilder/testplugin/ManagedBuildTestHelper.java b/build/org.eclipse.cdt.managedbuilder.core.tests/suite/org/eclipse/cdt/managedbuilder/testplugin/ManagedBuildTestHelper.java index 9a2662ea0cb..f7dca9a39f8 100644 --- a/build/org.eclipse.cdt.managedbuilder.core.tests/suite/org/eclipse/cdt/managedbuilder/testplugin/ManagedBuildTestHelper.java +++ b/build/org.eclipse.cdt.managedbuilder.core.tests/suite/org/eclipse/cdt/managedbuilder/testplugin/ManagedBuildTestHelper.java @@ -446,6 +446,11 @@ public class ManagedBuildTestHelper { continue; } } + if (isDependencyFile(testFileLocation)) { + if (compareDependencyFiles(testFileLocation, benchmarkFileLocation)) { + continue; + } + } StringBuffer testBuffer = readContentsStripLineEnds(project, testFileLocation); StringBuffer benchmarkBuffer = readContentsStripLineEnds(project, benchmarkFileLocation); if (!testBuffer.toString().equals(benchmarkBuffer.toString())) { @@ -490,6 +495,11 @@ public class ManagedBuildTestHelper { } return ext.equals("mk"); } + + private static boolean isDependencyFile(IPath file) { + String ext = file.getFileExtension(); + return "d".equals(ext); + } /** * Compare makefiles using a bunch of heuristics to avoid ordering mismatches @@ -513,14 +523,14 @@ public class ManagedBuildTestHelper { Set extraLines = new TreeSet(); for (int i=0;i testArray = getContents(testFile); + ArrayList benchmarkArray = getContents(benchmarkFile); + + for (int i=0;i getContents(IPath fullPath) { ArrayList lines = new ArrayList(); @@ -709,6 +769,11 @@ public class ManagedBuildTestHelper { return true; } } + if (isDependencyFile(tFileLocation)) { + if (compareDependencyFiles(tFileLocation, bmFileLocation)) { + return true; + } + } StringBuffer testBuffer = readContentsStripLineEnds(tFile); StringBuffer benchmarkBuffer = readContentsStripLineEnds(bmFile); if (!testBuffer.toString().equals(benchmarkBuffer.toString())) {