From 8b03636b3bc0e5d8947c1723e30467326f276b08 Mon Sep 17 00:00:00 2001 From: Dmitriy Novozhilov Date: Fri, 20 Oct 2023 09:58:16 +0300 Subject: [PATCH] [Test] Unmute test due to KT-62058 --- ...FirCompileKotlinAgainstCustomBinariesTest.kt | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/compiler/tests/org/jetbrains/kotlin/jvm/compiler/FirCompileKotlinAgainstCustomBinariesTest.kt b/compiler/tests/org/jetbrains/kotlin/jvm/compiler/FirCompileKotlinAgainstCustomBinariesTest.kt index d93952a7247..b3453ea096b 100644 --- a/compiler/tests/org/jetbrains/kotlin/jvm/compiler/FirCompileKotlinAgainstCustomBinariesTest.kt +++ b/compiler/tests/org/jetbrains/kotlin/jvm/compiler/FirCompileKotlinAgainstCustomBinariesTest.kt @@ -61,17 +61,12 @@ class FirCompileKotlinAgainstCustomBinariesTest : AbstractCompileKotlinAgainstCu // If this test fails, then bootstrap compiler most likely should be advanced fun testPreReleaseFlagIsConsistentBetweenBootstrapAndCurrentCompiler() { - try { - val bootstrapCompiler = JarFile(PathUtil.kotlinPathsForCompiler.compilerPath) - val classFromBootstrapCompiler = bootstrapCompiler.getEntry(LanguageFeature::class.java.name.replace(".", "/") + ".class") - checkPreReleaseness( - bootstrapCompiler.getInputStream(classFromBootstrapCompiler).readBytes(), - KotlinCompilerVersion.isPreRelease() - ) - } catch (e: Throwable) { - return - } - error("Looks like test can be unmuted") + val bootstrapCompiler = JarFile(PathUtil.kotlinPathsForCompiler.compilerPath) + val classFromBootstrapCompiler = bootstrapCompiler.getEntry(LanguageFeature::class.java.name.replace(".", "/") + ".class") + checkPreReleaseness( + bootstrapCompiler.getInputStream(classFromBootstrapCompiler).readBytes(), + KotlinCompilerVersion.isPreRelease() + ) } fun testPreReleaseFlagIsConsistentBetweenStdlibAndCurrentCompiler() {