Set thread context classloader in the kotlin runner

#KT-26624 fixed
This commit is contained in:
Ilya Chernikov
2019-08-26 19:43:55 +02:00
parent d3f32c0d8a
commit 08720a3dc6
3 changed files with 31 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
object ContextClassLoaderTester {
@JvmStatic
fun main(args: Array<String>) {
kotlin.test.DefaultAsserter.assertTrue("", true) // this tests that kotlin-test is in the compilation and runtime classpaths
val contextClassLoader = Thread.currentThread().getContextClassLoader()
contextClassLoader.loadClass("kotlin.test.DefaultAsserter") // this tests that thread context classloader is set correctly
println("ok")
}
}