]> source.dussan.org Git - aspectj.git/commitdiff
ensure InpathTestCases still behave in the presence of CVS info
authoracolyer <acolyer>
Tue, 11 Nov 2003 14:07:49 +0000 (14:07 +0000)
committeracolyer <acolyer>
Tue, 11 Nov 2003 14:07:49 +0000 (14:07 +0000)
in the directories.

ajde/testsrc/org/aspectj/ajde/InpathTestcase.java

index b05c56707450eeffc63b75a6935692103844bc8b..9ec9f2cf226a8dc4504418ee2a176d8a71e34c57 100644 (file)
@@ -285,10 +285,12 @@ public class InpathTestcase extends AjdeTestCase {
                        while (null != (entry = outjar.getNextEntry())) {
                                String fileName = entry.getName();
                                fileName = fileName.replace('\\', '/');
-                               boolean b = expectedOutputJarContents.remove(fileName);
-                               assertTrue(
-                                       "Unexpectedly found : " + fileName + " in outjar",
-                                       b);
+                               if (fileName.indexOf("CVS") == -1) {
+                                       boolean b = expectedOutputJarContents.remove(fileName);
+                                       assertTrue(
+                                                       "Unexpectedly found : " + fileName + " in outjar",
+                                                       b);
+                               }
                                outjar.closeEntry();
                        }
                        outjar.close();
@@ -348,8 +350,10 @@ public class InpathTestcase extends AjdeTestCase {
                String[] toResources = FileUtil.listFiles(binBase);
                for (int i = 0; i < toResources.length; i++) {
                        String fileName = toResources[i];
-                       boolean b = expectedOutdirContents.remove(fileName);
-                       assertTrue("Extraneous resources: " + fileName, b);
+                       if (fileName.indexOf("CVS") == -1) {
+                               boolean b = expectedOutdirContents.remove(fileName);
+                               assertTrue("Extraneous resources: " + fileName, b);
+                       }
                }
 
                assertTrue(