diff --git a/jps/jps-plugin/jps-tests/test/org/jetbrains/kotlin/jps/build/RelocatableJpsCachesTest.kt b/jps/jps-plugin/jps-tests/test/org/jetbrains/kotlin/jps/build/RelocatableJpsCachesTest.kt index e20a4493e95..7eda8ebed38 100644 --- a/jps/jps-plugin/jps-tests/test/org/jetbrains/kotlin/jps/build/RelocatableJpsCachesTest.kt +++ b/jps/jps-plugin/jps-tests/test/org/jetbrains/kotlin/jps/build/RelocatableJpsCachesTest.kt @@ -15,16 +15,19 @@ import org.jetbrains.kotlin.incremental.testingUtils.assertEqualDirectories import org.jetbrains.kotlin.jps.build.fixtures.EnableICFixture import org.jetbrains.kotlin.jps.incremental.KotlinDataContainerTarget import java.io.File +import kotlin.io.path.ExperimentalPathApi +import kotlin.io.path.createTempDirectory import kotlin.reflect.KFunction1 class RelocatableJpsCachesTest : BaseKotlinJpsBuildTestCase() { private val enableICFixture = EnableICFixture() private lateinit var workingDir: File + @OptIn(ExperimentalPathApi::class) override fun setUp() { super.setUp() enableICFixture.setUp() - workingDir = createTempDir("RelocatableJpsCachesTest", getTestName(false)) + workingDir = createTempDirectory("RelocatableJpsCachesTest-" + getTestName(false)).toFile() } override fun tearDown() {