diff --git a/compiler/tests-common/tests/org/jetbrains/kotlin/integration/KotlinIntegrationTestBase.java b/compiler/tests-common/tests/org/jetbrains/kotlin/integration/KotlinIntegrationTestBase.java index 1f490735c68..1bd98e9348a 100644 --- a/compiler/tests-common/tests/org/jetbrains/kotlin/integration/KotlinIntegrationTestBase.java +++ b/compiler/tests-common/tests/org/jetbrains/kotlin/integration/KotlinIntegrationTestBase.java @@ -140,7 +140,8 @@ public abstract class KotlinIntegrationTestBase extends TestCaseWithTmpdir { } protected static File getKotlinProjectHome() { - return new File(PathManager.getHomePath()).getParentFile(); + // assuming that tests are always run from the project's root + return new File(System.getProperty("user.dir")); } private static class OutputListener extends ProcessAdapter {