Revert "tmp: implement a hack to fix LA test"
This reverts commit 0387ce0365.
This change was not needed because the 'IGNORE_BACKEND_K1: JVM'
directive makes the test generated as ignored, in this case it is the
method named `ignoreSignedToUnsignedConversions` which is not even
recognized as a test.
This commit is contained in:
committed by
Space Team
parent
d7a2e11011
commit
70e9245867
@@ -1,8 +1,6 @@
|
|||||||
// WITH_STDLIB
|
// WITH_STDLIB
|
||||||
// !LANGUAGE: +ImplicitSignedToUnsignedIntegerConversion
|
// !LANGUAGE: +ImplicitSignedToUnsignedIntegerConversion
|
||||||
// IGNORE_BACKEND_K1: JVM
|
// IGNORE_BACKEND_K1: JVM
|
||||||
// dedicated hack to avoid unmuting this test in light analysis, see comments in AbstractLightAnalysisModeTest
|
|
||||||
// FAIL_IN_LIGHT_ANALYSIS
|
|
||||||
// FILE: signedToUnsignedConversions_annotation.kt
|
// FILE: signedToUnsignedConversions_annotation.kt
|
||||||
|
|
||||||
package kotlin.internal
|
package kotlin.internal
|
||||||
|
|||||||
+1
-10
@@ -32,21 +32,12 @@ abstract class AbstractLightAnalysisModeTest : CodegenTestCase() {
|
|||||||
"// TARGET_FRONTEND: FIR",
|
"// TARGET_FRONTEND: FIR",
|
||||||
"// IGNORE_BACKEND_K1:",
|
"// IGNORE_BACKEND_K1:",
|
||||||
)
|
)
|
||||||
|
|
||||||
// current ignore+unmute logic doesn't support the situation when LA successds but codegen fails
|
|
||||||
// so this is a very dirty hack to support it for one particular case - signedToUnsignedConversions.kt
|
|
||||||
// We assume that these tests will soo be irrelevant and therefore the hack will die too
|
|
||||||
private val failDirective = "FAIL_IN_LIGHT_ANALYSIS"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun doMultiFileTest(wholeFile: File, files: List<TestFile>) {
|
override fun doMultiFileTest(wholeFile: File, files: List<TestFile>) {
|
||||||
var isIgnored = false
|
|
||||||
for (file in files) {
|
for (file in files) {
|
||||||
if (file.content.contains(failDirective))
|
if (ignoreDirectives.any { file.content.contains(it) }) return
|
||||||
throw RuntimeException("Forced ignore for this test")
|
|
||||||
if (!isIgnored && ignoreDirectives.any { file.content.contains(it) }) isIgnored = true
|
|
||||||
}
|
}
|
||||||
if (isIgnored) return
|
|
||||||
|
|
||||||
val fullTxt = compileWithFullAnalysis(files)
|
val fullTxt = compileWithFullAnalysis(files)
|
||||||
.replace("final enum class", "enum class")
|
.replace("final enum class", "enum class")
|
||||||
|
|||||||
Reference in New Issue
Block a user