Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephan Herrmann2010-09-26 12:11:28 -0400
committerStephan Herrmann2010-09-26 12:11:28 -0400
commitde4efa920bf9ffca77ff1f5855020b496dfe1ea1 (patch)
tree5ee7c683929dfae94a9e4e72f0696bec40d8179f /org.eclipse.jdt.core.tests.compiler
parent66cc2b630cb956a5224848a13e98714fc235dfd5 (diff)
downloadorg.eclipse.objectteams-de4efa920bf9ffca77ff1f5855020b496dfe1ea1.tar.gz
org.eclipse.objectteams-de4efa920bf9ffca77ff1f5855020b496dfe1ea1.tar.xz
org.eclipse.objectteams-de4efa920bf9ffca77ff1f5855020b496dfe1ea1.zip
Basic merge with v_B14a for 3.7M2
Diffstat (limited to 'org.eclipse.jdt.core.tests.compiler')
-rw-r--r--org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/AbstractRegressionTest.java43
1 files changed, 24 insertions, 19 deletions
diff --git a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/AbstractRegressionTest.java b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/AbstractRegressionTest.java
index 114475a27..46366eec3 100644
--- a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/AbstractRegressionTest.java
+++ b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/AbstractRegressionTest.java
@@ -1149,6 +1149,7 @@ protected static class JavacTestOptions {
// test directory preparation
true /* flush output directory */,
testFiles /* test files */,
+ new String[] {},
// compiler options
null /* no class libraries */,
null /* no custom options */,
@@ -1190,25 +1191,26 @@ protected static class JavacTestOptions {
// javac options
JavacTestOptions.DEFAULT /* default javac test options */);
}
-
- // WORK good candidate for elimination (3 uses)
protected void runConformTest(
- String[] testFiles,
- String expectedSuccessOutputString,
- String[] vmArguments) {
+ String[] testFiles,
+ String[] dependantFiles,
+ String expectedSuccessOutputString) {
runTest(
- testFiles /* test files */,
- false /* expecting no compiler errors */,
- null /* do not check compiler log */,
- expectedSuccessOutputString /* expected output string */,
- null /* do not check error string */,
- false /* do not force execution */,
- null /* no class libraries */,
- true /* flush output directory */,
- vmArguments /* vm arguments */,
- null /* no custom options */,
- null /* no custom requestor */,
- JavacTestOptions.DEFAULT /* default javac test options */);
+ true,
+ testFiles,
+ dependantFiles,
+ null,
+ null,
+ false,
+ null,
+ false,
+ null,
+ false,
+ null,
+ expectedSuccessOutputString,
+ null,
+ null,
+ JavacTestOptions.DEFAULT);
}
protected void runConformTest(
@@ -2075,8 +2077,10 @@ protected void runNegativeTest(String[] testFiles, String expectedCompilerLog) {
String expectedErrorString,
// javac options
JavacTestOptions javacTestOptions) {
- runTest(shouldFlushOutputDirectory,
+ runTest(
+ shouldFlushOutputDirectory,
testFiles,
+ new String[] {},
classLibraries,
customOptions,
performStatementsRecovery,
@@ -2166,6 +2170,7 @@ protected void runNegativeTest(String[] testFiles, String expectedCompilerLog) {
// test directory preparation
boolean shouldFlushOutputDirectory,
String[] testFiles,
+ String[] dependantFiles,
// compiler options
String[] classLibraries,
Map customOptions,
@@ -2209,7 +2214,7 @@ protected void runNegativeTest(String[] testFiles, String expectedCompilerLog) {
CompilerOptions compilerOptions = new CompilerOptions(options);
compilerOptions.performMethodsFullRecovery = performStatementsRecovery;
compilerOptions.performStatementsRecovery = performStatementsRecovery;
- INameEnvironment nameEnvironment = getNameEnvironment(new String[]{}, classLibraries);
+ INameEnvironment nameEnvironment = getNameEnvironment(dependantFiles, classLibraries);
Compiler batchCompiler =
new Compiler(
nameEnvironment,

Back to the top