[K/N][tests] Migrate termination runtime tests to new testing infra ^KT-61259

This commit is contained in:
Alexander Shabalin
2023-11-08 11:47:43 +01:00
committed by Space Team
parent 226ee3c367
commit 04a2a2d90d
33 changed files with 347 additions and 363 deletions
@@ -1,9 +0,0 @@
/*
* Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
* that can be found in the LICENSE file.
*/
@file:OptIn(kotlin.experimental.ExperimentalNativeApi::class)
fun main(args: Array<String>) {
assert(false)
}
@@ -1,9 +0,0 @@
/*
* Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
* that can be found in the LICENSE file.
*/
@file:OptIn(kotlin.experimental.ExperimentalNativeApi::class)
fun main(args: Array<String>) {
assert(true)
}
@@ -1,12 +0,0 @@
/*
* Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
* that can be found in the LICENSE file.
*/
import kotlin.system.*
fun main(args: Array<String>) {
exitProcess(42)
@Suppress("UNREACHABLE_CODE")
throw RuntimeException("Exit function call returned normally")
}
@@ -1,12 +0,0 @@
/*
* Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
* that can be found in the LICENSE file.
*/
package runtime.basic.main_exception
import kotlin.test.*
@Test fun runTest() {
throw Error("Hello!")
}