Add SKIP_JAVAC in tests where behaviour has diverged with IDEA resolve

See a71f09022c
This commit is contained in:
Dmitry Savvinov
2018-08-07 18:58:23 +03:00
parent e3bdde45de
commit 2b8ca60c05
4 changed files with 6 additions and 0 deletions
@@ -1,3 +1,4 @@
// SKIP_JAVAC
// FILE: b.kt
package b
@@ -1,3 +1,4 @@
// SKIP_JAVAC
// FILE: a/B.java
package a;
@@ -1,3 +1,4 @@
// SKIP_JAVAC
// FILE: a/A.java
package a;
@@ -131,6 +131,9 @@ public abstract class KotlinMultiFileTestWithJava<M, F> extends KtUsefulTestCase
protected void doTest(String filePath) throws Exception {
File file = new File(filePath);
String expectedText = KotlinTestUtils.doLoadFile(file);
if (InTextDirectivesUtils.isDirectiveDefined(expectedText, "// SKIP_JAVAC")) return;
Map<String, ModuleAndDependencies> modules = new HashMap<>();
List<F> testFiles = createTestFiles(file, expectedText, modules);