[Native][tests] Introduce EXIT_CODE directive

It allows to specify the expected exit code for STANDALONE_NO_TR tests.
This commit is contained in:
Dmitriy Dolovov
2022-04-07 15:05:03 +03:00
committed by Space
parent 261e177b39
commit 996ff5085d
8 changed files with 121 additions and 46 deletions
@@ -0,0 +1,8 @@
// KIND: STANDALONE_NO_TR
// EXIT_CODE: !0
import kotlin.system.exitProcess
fun main() {
exitProcess(42)
}
@@ -0,0 +1,8 @@
// KIND: STANDALONE_NO_TR
// EXIT_CODE: 42
import kotlin.system.exitProcess
fun main() {
exitProcess(42)
}
@@ -0,0 +1,8 @@
// KIND: STANDALONE_NO_TR
// EXIT_CODE: 0
import kotlin.system.exitProcess
fun main() {
exitProcess(0)
}