[K/N][tests] Fix new line handling in termination tests ^KT-61259
This commit is contained in:
committed by
Space Team
parent
672fea9be4
commit
0692346715
@@ -1,5 +1,5 @@
|
||||
// EXIT_CODE: !0
|
||||
// OUTPUT_REGEX: Uncaught Kotlin exception: kotlin\.Error: an error\n(?!.*FAIL.*).*
|
||||
// OUTPUT_REGEX: Uncaught Kotlin exception: kotlin\.Error: an error\R(?!.*FAIL.*).*
|
||||
|
||||
val p: Nothing = throw Error("an error")
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// EXIT_CODE: !0
|
||||
// OUTPUT_REGEX: Uncaught Kotlin exception: kotlin\.Error: an error\n.*
|
||||
// OUTPUT_REGEX: Uncaught Kotlin exception: kotlin\.Error: an error\R.*
|
||||
|
||||
fun main() {
|
||||
throw Error("an error")
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// EXIT_CODE: !0
|
||||
// OUTPUT_REGEX: Uncaught Kotlin exception: kotlin\.Error: an error\n.*
|
||||
// OUTPUT_REGEX: Uncaught Kotlin exception: kotlin\.Error: an error\R.*
|
||||
@file:OptIn(kotlin.experimental.ExperimentalNativeApi::class)
|
||||
|
||||
fun main() {
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// EXIT_CODE: !0
|
||||
// OUTPUT_REGEX: Uncaught Kotlin exception: kotlin\.Error: an error\n.*
|
||||
// OUTPUT_REGEX: Uncaught Kotlin exception: kotlin\.Error: an error\R.*
|
||||
@file:OptIn(kotlin.experimental.ExperimentalNativeApi::class)
|
||||
|
||||
fun main() {
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
// EXIT_CODE: !0
|
||||
// FREE_COMPILER_ARGS: -opt-in=kotlin.native.internal.InternalForKotlinNative
|
||||
// OUTPUT_REGEX: value 42: Error\. Runnable state: true\nUncaught Kotlin exception: kotlin\.Error: an error\n.*
|
||||
// OUTPUT_REGEX: value 42: Error\. Runnable state: true\RUncaught Kotlin exception: kotlin\.Error: an error\R.*
|
||||
@file:OptIn(kotlin.experimental.ExperimentalNativeApi::class, kotlin.native.runtime.NativeRuntimeApi::class)
|
||||
|
||||
import kotlin.native.runtime.Debugging
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
// EXIT_CODE: !0
|
||||
// FREE_COMPILER_ARGS: -opt-in=kotlin.native.internal.InternalForKotlinNative
|
||||
// OUTPUT_REGEX: value true: Error\. Runnable state: true\nUncaught Kotlin exception: kotlin\.Error: an error\n.*
|
||||
// OUTPUT_REGEX: value true: Error\. Runnable state: true\RUncaught Kotlin exception: kotlin\.Error: an error\R.*
|
||||
@file:OptIn(kotlin.experimental.ExperimentalNativeApi::class, kotlin.native.runtime.NativeRuntimeApi::class)
|
||||
|
||||
import kotlin.native.runtime.Debugging
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// EXIT_CODE: !0
|
||||
// OUTPUT_REGEX: Hook\nUncaught Kotlin exception: kotlin\.Error: an error\n.*
|
||||
// OUTPUT_REGEX: Hook\RUncaught Kotlin exception: kotlin\.Error: an error\R.*
|
||||
@file:OptIn(kotlin.experimental.ExperimentalNativeApi::class)
|
||||
|
||||
import kotlin.test.*
|
||||
|
||||
Vendored
+1
-1
@@ -1,5 +1,5 @@
|
||||
// EXIT_CODE: !0
|
||||
// OUTPUT_REGEX: Hook\nUncaught Kotlin exception: kotlin\.Error: an error\n(?!.*FAIL.*).*
|
||||
// OUTPUT_REGEX: Hook\RUncaught Kotlin exception: kotlin\.Error: an error\R(?!.*FAIL.*).*
|
||||
@file:OptIn(kotlin.experimental.ExperimentalNativeApi::class)
|
||||
|
||||
import kotlin.test.*
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// EXIT_CODE: !0
|
||||
// OUTPUT_REGEX: Hook\nUncaught Kotlin exception: kotlin\.Error: another error\n(?!.*an error.*).*
|
||||
// OUTPUT_REGEX: Hook\RUncaught Kotlin exception: kotlin\.Error: another error\R(?!.*an error.*).*
|
||||
@file:OptIn(kotlin.experimental.ExperimentalNativeApi::class)
|
||||
|
||||
import kotlin.test.*
|
||||
|
||||
Reference in New Issue
Block a user