From d40f88337a254261a01707284f742c0c854980ab Mon Sep 17 00:00:00 2001 From: Dmitriy Dolovov Date: Tue, 27 Feb 2024 15:12:04 +0100 Subject: [PATCH] [Test] Report all KLIB resolve warnings as errors --- .../jetbrains/kotlin/test/frontend/fir/SessionFactoryHelpers.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/frontend/fir/SessionFactoryHelpers.kt b/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/frontend/fir/SessionFactoryHelpers.kt index c59e8c5584c..92136dfba11 100644 --- a/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/frontend/fir/SessionFactoryHelpers.kt +++ b/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/frontend/fir/SessionFactoryHelpers.kt @@ -16,7 +16,7 @@ import org.jetbrains.kotlin.test.services.configuration.getKlibDependencies import java.io.File fun resolveLibraries(configuration: CompilerConfiguration, paths: List): List { - return CommonKLibResolver.resolve(paths, configuration.getLogger()).getFullResolvedList() + return CommonKLibResolver.resolve(paths, configuration.getLogger(treatWarningsAsErrors = true)).getFullResolvedList() } fun getTransitivesAndFriendsPaths(module: TestModule, testServices: TestServices): List {