unit-tests: Fix filenames for Windows

This commit is contained in:
Ilya Matveev
2017-09-21 15:14:55 +03:00
committed by ilmat192
parent 6db5bbb4f0
commit 2f4163ece6
@@ -65,7 +65,8 @@ internal class TestProcessor (val context: KonanBackendContext): FileLoweringPas
.mapIndexed { i, it -> if (i != 0) it.capitalize() else it }
.joinToString("")}\$test\$${testSuiteCnt++}".synthesizedName
private val IrFile.fileName get() = name.substringAfterLast(File.separatorChar)
// IrFile always uses a forward slash as a directory separator.
private val IrFile.fileName get() = name.substringAfterLast('/')
private val IrFile.topLevelSuiteName get() = "Tests in file: $fileName"
private fun MutableList<TestFunction>.registerFunction(