[Native][tests] Introduce EXIT_CODE directive
It allows to specify the expected exit code for STANDALONE_NO_TR tests.
This commit is contained in:
@@ -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)
|
||||
}
|
||||
Reference in New Issue
Block a user