From d5e391c401a3ce9a31a21a50507ed67cb866be8a Mon Sep 17 00:00:00 2001 From: Vladimir Sukharev Date: Fri, 10 Nov 2023 15:33:29 +0100 Subject: [PATCH] [K/N] Improve manual testing script for SpecialBackendChecks --- kotlin-native/backend.native/tests/compilerChecks/README.md | 4 ++-- .../backend.native/tests/compilerChecks/runtests.sh | 6 +----- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/kotlin-native/backend.native/tests/compilerChecks/README.md b/kotlin-native/backend.native/tests/compilerChecks/README.md index 38973e626e3..67721b4c31d 100644 --- a/kotlin-native/backend.native/tests/compilerChecks/README.md +++ b/kotlin-native/backend.native/tests/compilerChecks/README.md @@ -136,9 +136,9 @@ kotlin-native/backend.native/tests/compilerChecks/t61.kt:8:5: error: only compan kotlin-native/backend.native/tests/compilerChecks/t62.kt kotlin-native/backend.native/tests/compilerChecks/t62.kt:7:1: error: only companion objects of subclasses of Objective-C classes can inherit from Objective-C metaclasses kotlin-native/backend.native/tests/compilerChecks/t63.kt - MISSING EXPECTED ERROR FOR kotlin-native/backend.native/tests/compilerChecks/t63.kt +kotlin-native/backend.native/tests/compilerChecks/t63.kt:24:17: error: calling suspend functions from `autoreleasepool {}` is prohibited, see https://youtrack.jetbrains.com/issue/KT-50786 kotlin-native/backend.native/tests/compilerChecks/t64.kt - MISSING EXPECTED ERROR FOR kotlin-native/backend.native/tests/compilerChecks/t64.kt +kotlin-native/backend.native/tests/compilerChecks/t64.kt:26:17: error: calling suspend functions from `autoreleasepool {}` is prohibited, see https://youtrack.jetbrains.com/issue/KT-50786 kotlin-native/backend.native/tests/compilerChecks/t7.kt kotlin-native/backend.native/tests/compilerChecks/t7.kt:4:41: error: when calling variadic C functions spread operator is supported only for *arrayOf(...) kotlin-native/backend.native/tests/compilerChecks/t8.kt diff --git a/kotlin-native/backend.native/tests/compilerChecks/runtests.sh b/kotlin-native/backend.native/tests/compilerChecks/runtests.sh index 47b5d84f8c5..520df732d37 100755 --- a/kotlin-native/backend.native/tests/compilerChecks/runtests.sh +++ b/kotlin-native/backend.native/tests/compilerChecks/runtests.sh @@ -5,9 +5,5 @@ for TEST in kotlin-native/backend.native/tests/compilerChecks/*.kt; do echo "$TEST"; - konanc -p library -opt-in=kotlinx.cinterop.ExperimentalForeignApi -opt-in=kotlinx.cinterop.BetaInteropApi -opt-in=kotlin.native.internal.InternalForKotlinNative -Xsuppress-version-warnings "$TEST" "$@"; - retVal=$? - if [ $retVal -eq 0 ]; then - echo " MISSING EXPECTED ERROR FOR $TEST" - fi + konanc -opt-in=kotlinx.cinterop.ExperimentalForeignApi -opt-in=kotlinx.cinterop.BetaInteropApi -opt-in=kotlin.native.internal.InternalForKotlinNative "$TEST" "$@"; done