[test] Remove redundant signature clash diagnotic test from Native tests
Since d8d8f24f62 the tests for this
diagnostic are run with the Compiler Core test infrastructure
(see `compiler/testData/diagnostics/klibSerializationTests`)
There is no need to test it separately in `FirCompilerOutputTest`.
^KT-64393 Fixed
This commit is contained in:
committed by
Space Team
parent
8c320f0602
commit
67afd12f94
+3
-14
@@ -164,25 +164,14 @@ abstract class CompilerOutputTestBase : AbstractNativeSimpleTest() {
|
||||
}
|
||||
}
|
||||
|
||||
@Suppress("JUnitTestCaseWithNoTests")
|
||||
@TestDataPath("\$PROJECT_ROOT")
|
||||
@EnforcedProperty(ClassLevelProperty.COMPILER_OUTPUT_INTERCEPTOR, "NONE")
|
||||
class ClassicCompilerOutputTest : CompilerOutputTestBase()
|
||||
|
||||
@Suppress("JUnitTestCaseWithNoTests")
|
||||
@FirPipeline
|
||||
@Tag("frontend-fir")
|
||||
@TestDataPath("\$PROJECT_ROOT")
|
||||
@EnforcedProperty(ClassLevelProperty.COMPILER_OUTPUT_INTERCEPTOR, "NONE")
|
||||
class FirCompilerOutputTest : CompilerOutputTestBase() {
|
||||
|
||||
@Test
|
||||
fun testSignatureClashDiagnostics() {
|
||||
// TODO: use the Compiler Core test infrastructure for testing these diagnostics (KT-64393)
|
||||
val rootDir = File("native/native.tests/testData/compilerOutput/SignatureClashDiagnostics")
|
||||
val settings = testRunSettings
|
||||
val lib = compileLibrary(settings, rootDir.resolve("lib.kt")).assertSuccess().resultingArtifact
|
||||
val compilationResult = compileLibrary(settings, rootDir.resolve("main.kt"), dependencies = listOf(lib))
|
||||
val goldenData = rootDir.resolve("output.txt")
|
||||
|
||||
KotlinTestUtils.assertEqualsToFile(goldenData, compilationResult.toOutput())
|
||||
}
|
||||
}
|
||||
class FirCompilerOutputTest : CompilerOutputTestBase()
|
||||
|
||||
Reference in New Issue
Block a user