From dbc85a5f18946a8b595c9ff144da713f30bb4a6d Mon Sep 17 00:00:00 2001 From: Dmitriy Novozhilov Date: Wed, 2 Dec 2020 13:34:55 +0300 Subject: [PATCH] [TEST] Fix compilation of CodegenTestsOnAndroidGenerator.kt --- .../kotlin/android/tests/CodegenTestsOnAndroidGenerator.kt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/compiler/android-tests/tests/org/jetbrains/kotlin/android/tests/CodegenTestsOnAndroidGenerator.kt b/compiler/android-tests/tests/org/jetbrains/kotlin/android/tests/CodegenTestsOnAndroidGenerator.kt index 059e1760748..055daf8e553 100644 --- a/compiler/android-tests/tests/org/jetbrains/kotlin/android/tests/CodegenTestsOnAndroidGenerator.kt +++ b/compiler/android-tests/tests/org/jetbrains/kotlin/android/tests/CodegenTestsOnAndroidGenerator.kt @@ -269,8 +269,7 @@ class CodegenTestsOnAndroidGenerator private constructor(private val pathManager continue } - val fullFileText = - FileUtil.loadFile(file, true).replace("COROUTINES_PACKAGE", "kotlin.coroutines") + val fullFileText = FileUtil.loadFile(file, true) if (fullFileText.contains("// WITH_COROUTINES")) { if (fullFileText.contains("kotlin.coroutines.experimental")) continue @@ -317,7 +316,7 @@ class CodegenTestsOnAndroidGenerator private constructor(private val pathManager } private fun createTestFiles(file: File, expectedText: String): List = - CodegenTestCase.createTestFilesFromFile(file, expectedText, "kotlin.coroutines", false, TargetBackend.JVM) + CodegenTestCase.createTestFilesFromFile(file, expectedText, false, TargetBackend.JVM) companion object { const val GRADLE_VERSION = "5.6.4" // update GRADLE_SHA_256 on change