Fix incompleteHierarchyInJava test on Windows
Normalize path delimiters to '/' via CliBaseTest
This commit is contained in:
+2
@@ -1,3 +1,5 @@
|
|||||||
ERROR: compiler/testData/compileKotlinAgainstCustomBinaries/incompleteHierarchyInJava/source.kt: (5, 22) Unresolved reference: foo
|
ERROR: compiler/testData/compileKotlinAgainstCustomBinaries/incompleteHierarchyInJava/source.kt: (5, 22) Unresolved reference: foo
|
||||||
ERROR: The following classes have incomplete hierarchies:
|
ERROR: The following classes have incomplete hierarchies:
|
||||||
test.Sub, unresolved: [Super]
|
test.Sub, unresolved: [Super]
|
||||||
|
|
||||||
|
COMPILATION_ERROR
|
||||||
@@ -67,7 +67,7 @@ public class CliBaseTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@NotNull
|
@NotNull
|
||||||
static String getNormalizedCompilerOutput(@NotNull String pureOutput, @NotNull ExitCode exitCode, @NotNull String testDataDir) {
|
public static String getNormalizedCompilerOutput(@NotNull String pureOutput, @NotNull ExitCode exitCode, @NotNull String testDataDir) {
|
||||||
String normalizedOutputWithoutExitCode = pureOutput
|
String normalizedOutputWithoutExitCode = pureOutput
|
||||||
.replace(new File(testDataDir).getAbsolutePath(), "$TESTDATA_DIR$")
|
.replace(new File(testDataDir).getAbsolutePath(), "$TESTDATA_DIR$")
|
||||||
.replace("expected ABI version is " + Integer.toString(JvmAbi.VERSION), "expected ABI version is $ABI_VERSION$")
|
.replace("expected ABI version is " + Integer.toString(JvmAbi.VERSION), "expected ABI version is $ABI_VERSION$")
|
||||||
|
|||||||
+2
-1
@@ -208,7 +208,8 @@ public class CompileKotlinAgainstCustomBinariesTest extends TestCaseWithTmpdir {
|
|||||||
"-classpath", tmpdir.getPath(),
|
"-classpath", tmpdir.getPath(),
|
||||||
"-d", tmpdir.getPath()
|
"-d", tmpdir.getPath()
|
||||||
));
|
));
|
||||||
|
String output = CliBaseTest.getNormalizedCompilerOutput(pair.first, pair.second, getTestDataDirectory().getPath());
|
||||||
|
|
||||||
JetTestUtils.assertEqualsToFile(new File(getTestDataDirectory(), "output.txt"), pair.first);
|
JetTestUtils.assertEqualsToFile(new File(getTestDataDirectory(), "output.txt"), output);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user