aboutsummaryrefslogtreecommitdiffstats
path: root/testing-drivers
diff options
context:
space:
mode:
authorwisberg <wisberg>2003-08-28 18:36:02 +0000
committerwisberg <wisberg>2003-08-28 18:36:02 +0000
commitec334f56cf5f8abc83e196b7362ae022e0ebcb91 (patch)
treef7abc6ffa16b30030d7b21e6816b543cd387380a /testing-drivers
parentebe50650a374fcc6e95bfdb6bde4a27797babbe7 (diff)
downloadaspectj-ec334f56cf5f8abc83e196b7362ae022e0ebcb91.tar.gz
aspectj-ec334f56cf5f8abc83e196b7362ae022e0ebcb91.zip
cloning re-used test specifications to avoid test interactions
Diffstat (limited to 'testing-drivers')
-rw-r--r--testing-drivers/testsrc/org/aspectj/testing/drivers/HarnessSelectionTest.java15
1 files changed, 11 insertions, 4 deletions
diff --git a/testing-drivers/testsrc/org/aspectj/testing/drivers/HarnessSelectionTest.java b/testing-drivers/testsrc/org/aspectj/testing/drivers/HarnessSelectionTest.java
index a11f57182..dd0ed82c3 100644
--- a/testing-drivers/testsrc/org/aspectj/testing/drivers/HarnessSelectionTest.java
+++ b/testing-drivers/testsrc/org/aspectj/testing/drivers/HarnessSelectionTest.java
@@ -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);
}