[PL][tests] Adapt tests for K/N to the conditions when static cache is used w/o lazy IR

This commit is contained in:
Dmitriy Dolovov
2023-06-19 14:10:09 +02:00
committed by Space Team
parent 5f3dad14a2
commit 2e43fa7cd0
9 changed files with 53 additions and 34 deletions
@@ -8,7 +8,7 @@ private fun TestBuilder.pe(className: String) = linkage("Property accessor 'bar.
fun box() = abiTest {
// For now it's not working with caches, because of incorrect lazy-IR usage.
// Check KT-54019 for details.
if (testMode.hasCachesEnabled) {
if (!testMode.lazyIr.usedEverywhere) {
expectSuccess("OK") { "OK" }
return@abiTest
}