]> source.dussan.org Git - aspectj.git/commitdiff
cloning re-used test specifications to avoid test interactions
authorwisberg <wisberg>
Thu, 28 Aug 2003 18:36:02 +0000 (18:36 +0000)
committerwisberg <wisberg>
Thu, 28 Aug 2003 18:36:02 +0000 (18:36 +0000)
testing-drivers/testsrc/org/aspectj/testing/drivers/HarnessSelectionTest.java

index a11f57182ce727194f9b3e7a381e304971996e62..dd0ed82c3fa4ab4ce7c34d3b6f6706079dfa477e 100644 (file)
@@ -66,8 +66,14 @@ public class HarnessSelectionTest extends TestCase {
             } catch (IOException e) {
                 e.printStackTrace(System.err);
             }
+        }        
+        try {
+            return (AjcTest.Suite.Spec) result.clone();
+        } catch (CloneNotSupportedException e) {
+            e.printStackTrace(System.err);
+            assertTrue("clone failed: " + e, false);
+            return null; // keep compiler happy
         }
-        return result;
     }
     
     private boolean verbose;
@@ -104,7 +110,7 @@ public class HarnessSelectionTest extends TestCase {
         }
         String[] options = new String[] 
             { "-ajctestRequireKeywords=requireKeyword", 
-            "-ajctestSkipKeywords=skipKeyword",
+            "-ajctestSkipKeywords=skipKeyword,skipUnenforcedAjcLimit",
             "!verbose",
             "-eclipse",
             };
@@ -175,8 +181,9 @@ public class HarnessSelectionTest extends TestCase {
     
     public void testEclipseConflict() {
         String[] options = new String[] 
-            { "^eclipse"
-            };
+            { "^eclipse",
+              "-ajctestSkipKeywords=skipUnenforcedAjcLimit"
+            };            
         Exp exp = new Exp(17, 3, 14, 3, 0, 0, 6);
         checkSelection(SELECT, options, "conflict between arg=!eclipse and global=^eclipse", exp);
     }