[Test] Support skip of android codegen tests with new ASSERTION_MODE directive

This commit is contained in:
Dmitriy Novozhilov
2021-02-01 18:36:27 +03:00
committed by Mikhael Bogdanov
parent eff13d24dc
commit f255f93ad9
@@ -280,6 +280,7 @@ class CodegenTestsOnAndroidGenerator private constructor(private val pathManager
if (fullFileText.contains("@file:JvmPackageName(")) continue
// TODO: Support jvm assertions
if (fullFileText.contains("// KOTLIN_CONFIGURATION_FLAGS: ASSERTIONS_MODE=jvm")) continue
if (fullFileText.contains("// ASSERTIONS_MODE: jvm")) continue
val targets = InTextDirectivesUtils.findLinesWithPrefixesRemoved(fullFileText, "// JVM_TARGET:")
.also { it.remove(JvmTarget.JVM_1_6.description) }