[K/N][tests] Migrate various runtime/ tests ^KT-61259
This commit is contained in:
committed by
Space Team
parent
7ad4e58a7a
commit
d88092aa94
Vendored
+15
@@ -0,0 +1,15 @@
|
||||
// EXIT_CODE: !0
|
||||
// OUTPUT_REGEX: .*an error.*
|
||||
// OUTPUT_REGEX: (?!.*Will not happen.*).*
|
||||
import kotlin.test.*
|
||||
|
||||
import kotlin.native.concurrent.*
|
||||
|
||||
fun main() {
|
||||
val worker = Worker.start()
|
||||
worker.executeAfter(0L, {
|
||||
throw Error("an error")
|
||||
})
|
||||
worker.requestTermination().result
|
||||
println("Will not happen")
|
||||
}
|
||||
Reference in New Issue
Block a user