[IDE, native] Update mock K/N dist: fully qualified klib names

This commit is contained in:
Ilya Matveev
2020-04-07 12:04:16 +07:00
parent 12e4159525
commit cf157e3999
53 changed files with 75 additions and 53 deletions
@@ -154,7 +154,12 @@ private fun assertValidNativeLibrary(library: Library, projectRoot: String) {
.relativeTo(File(projectRoot).resolve(DOUBLE_DOT_PATH).normalize())
.relativeTo(FAKE_KOTLIN_NATIVE_HOME_RELATIVE_PATH)
val expectedShortPath = if (platform.isEmpty()) konanCommonLibraryPath(name) else konanPlatformLibraryPath(name, platform)
val expectedDirectoryName = if (name == "stdlib") name else "org.jetbrains.kotlin.native.$name"
val expectedShortPath = if (platform.isEmpty()) {
konanCommonLibraryPath(expectedDirectoryName)
} else {
konanPlatformLibraryPath(expectedDirectoryName, platform)
}
assertEquals("The short path of $fullName does not match its location", expectedShortPath, actualShortPath)
}