tests: Add test for assertion fail
This commit is contained in:
@@ -1192,6 +1192,10 @@ task main_exception(type: RunKonanTest) {
|
|||||||
source = "runtime/basic/main_exception.kt"
|
source = "runtime/basic/main_exception.kt"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
task failed_assert(type: RunKonanTest) {
|
||||||
|
expectedExitStatus = 1
|
||||||
|
source = "runtime/basic/failed_assert.kt"
|
||||||
|
}
|
||||||
|
|
||||||
task initializers0(type: RunKonanTest) {
|
task initializers0(type: RunKonanTest) {
|
||||||
goldValue = "main\n" +
|
goldValue = "main\n" +
|
||||||
|
|||||||
@@ -0,0 +1,3 @@
|
|||||||
|
fun main(args: Array<String>) {
|
||||||
|
assert(false)
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user