From 0885d608d87706c14797d72fbece41e1df5d2a7a Mon Sep 17 00:00:00 2001 From: Anton Bannykh Date: Mon, 6 Jul 2020 18:11:16 +0300 Subject: [PATCH] JS IR: normalize the generate file path in the box tests --- js/js.tests/test/org/jetbrains/kotlin/js/test/BasicIrBoxTest.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/js.tests/test/org/jetbrains/kotlin/js/test/BasicIrBoxTest.kt b/js/js.tests/test/org/jetbrains/kotlin/js/test/BasicIrBoxTest.kt index 27ee9439211..2b2ea7209a7 100644 --- a/js/js.tests/test/org/jetbrains/kotlin/js/test/BasicIrBoxTest.kt +++ b/js/js.tests/test/org/jetbrains/kotlin/js/test/BasicIrBoxTest.kt @@ -227,7 +227,7 @@ abstract class BasicIrBoxTest( // TODO: should we do anything special for module systems? // TODO: return list of js from translateFiles and provide then to this function with other js files - val allFiles = jsFiles.flatMap { file -> cachedDependencies[file]?.let { deps -> deps + file } ?: listOf(file) } + val allFiles = jsFiles.flatMap { file -> cachedDependencies[File(file).absolutePath]?.let { deps -> deps + file } ?: listOf(file) } testChecker.check(allFiles, testModuleName, testPackage, testFunction, expectedResult, withModuleSystem) } }