Cleanup test checking legacy inline suspend

Move expected library compilation output to file.
^KT-36240 Fixed
This commit is contained in:
Pavel Kirpichenkov
2020-02-04 18:11:36 +03:00
parent 8335ad7e98
commit 87e0186334
2 changed files with 4 additions and 5 deletions
@@ -0,0 +1,2 @@
warning: language version 1.2 is deprecated and its support will be removed in a future version of Kotlin
OK
@@ -39,6 +39,7 @@ import org.jetbrains.org.objectweb.asm.*
import org.jetbrains.org.objectweb.asm.tree.AbstractInsnNode
import org.jetbrains.org.objectweb.asm.tree.MethodInsnNode
import org.jetbrains.org.objectweb.asm.tree.MethodNode
import org.jetbrains.uast.test.env.assertEqualsToFile
import java.io.File
import java.net.URLClassLoader
import java.util.jar.JarEntry
@@ -495,11 +496,7 @@ class CompileKotlinAgainstCustomBinariesTest : AbstractKotlinCompilerIntegration
additionalOptions = options,
extraClassPath = listOf(ForTestCompileRuntime.coroutinesCompatForTests()),
checkKotlinOutput = { actual ->
// TODO KT-36240
assertEquals(
"warning: language version 1.2 is deprecated and its support will be removed in a future version of Kotlin\nOK\n",
actual
)
KotlinTestUtils.assertEqualsToFile(File(testDataDirectory, "library.output.txt"), actual)
}
),
{ _, bytes ->