diff options
author | Stephan Herrmann | 2019-01-26 14:55:13 +0000 |
---|---|---|
committer | Stephan Herrmann | 2019-01-26 14:55:13 +0000 |
commit | a564c4bb82e4a5a73ce782d5fa3c0f4e9caafd9b (patch) | |
tree | fbb8a4ed39f58a141301117d6c26ee8f3d7b649a | |
parent | 4c49f905582020b5bbace350773b0eba3dc92fb8 (diff) | |
download | eclipse.jdt.core-a564c4bb82e4a5a73ce782d5fa3c0f4e9caafd9b.tar.gz eclipse.jdt.core-a564c4bb82e4a5a73ce782d5fa3c0f4e9caafd9b.tar.xz eclipse.jdt.core-a564c4bb82e4a5a73ce782d5fa3c0f4e9caafd9b.zip |
Bug 543856 - [test] report odd number of strings in testFiles in allI20190126-1800
modes
Change-Id: I75e5acd78b90783245ac10d1c419b9d7c166c4f7
Signed-off-by: Stephan Herrmann <stephan.herrmann@berlin.de>
2 files changed, 5 insertions, 6 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 9fdbdb09c7..9473d14de8 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 @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2018 IBM Corporation and others. + * Copyright (c) 2000, 2019 IBM Corporation and others. * * This program and the accompanying materials * are made available under the terms of the Eclipse Public License 2.0 @@ -3024,8 +3024,7 @@ protected void runNegativeTest(boolean skipJavac, JavacTestOptions javacTestOpti // non-javac part if (shouldFlushOutputDirectory) Util.flushDirectoryContent(new File(OUTPUT_DIR)); - // complain early in RUN_JAVAC mode (avoid to do it else until we've fixed all tests) - if (RUN_JAVAC && testFiles != null && (testFiles.length % 2) != 0) { + if (testFiles != null && (testFiles.length % 2) != 0) { fail("odd number of strings in testFiles"); } diff --git a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/JEP323VarLambdaParamsTest.java b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/JEP323VarLambdaParamsTest.java index 351fb85796..1b6fc30645 100644 --- a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/JEP323VarLambdaParamsTest.java +++ b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/JEP323VarLambdaParamsTest.java @@ -337,8 +337,8 @@ public void testBug541532_01() throws IOException { " String[] greetings = {\"hello\", \"world\"};\n" + " X.foo(Arrays.asList(greetings));\n" + " }\n" + - "}\n", - "hello\nworld" - }); + "}\n" + }, + "hello\nworld"); } }
\ No newline at end of file |