Filter out self output directory from classpath in FIR modularized test

This commit is contained in:
Simon Ogorodnik
2019-04-25 14:18:38 +03:00
committed by Mikhail Glukhikh
parent e521e66c74
commit 8e200d8113
@@ -159,7 +159,10 @@ class FirResolveModularizedTotalKotlinTest : KtUsefulTestCase() {
val item = moduleElement.childNodes.item(index)
if (item.nodeName == "classpath") {
classpath += File(item.attributes.getNamedItem("path").nodeValue)
val path = item.attributes.getNamedItem("path").nodeValue
if (path != outputDir) {
classpath += File(path)
}
}
if (item.nodeName == "javaSourceRoots") {
javaSourceRoots += File(item.attributes.getNamedItem("path").nodeValue)