mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 08:31:29 +00:00
Use `// !LANGUAGE: -ReleaseCoroutines` instead in tests which require old (1.2) coroutines, and nothing in tests which require new coroutines because master is already 1.3. Also remove superfluous API_VERSION and other directives which have no effect anymore. Do not include runtime automatically with `WITH_COROUTINES`/`COMMON_COROUTINES_TEST` in box tests; require `WITH_RUNTIME` for that (majority of tests already had it anyway), but remove it from bytecode text tests where runtime is always added automatically. Fix the coroutine package selection code in KotlinTestUtils and update the bunch files correspondingly. Disable tests in `box/coroutines/noStdLib` on JVM: despite the name, these tests were launched with stdlib because of the code in CodegenTestCase, and they do not work without it because at least CoroutineUtil.kt requires stdlib to compile correctly
14 lines
250 B
Kotlin
Vendored
14 lines
250 B
Kotlin
Vendored
// COMMON_COROUTINES_TEST
|
|
// WITH_RUNTIME
|
|
|
|
suspend fun catchException(): String {
|
|
try {
|
|
return suspendWithException()
|
|
}
|
|
catch(e: Exception) {
|
|
return e.message!!
|
|
}
|
|
}
|
|
|
|
suspend fun suspendWithException(): String = TODO()
|