tests: Add test for assertion fail

This commit is contained in:
Ilya Matveev
2017-03-10 18:34:15 +03:00
committed by ilmat192
parent 97b5bb527d
commit 20ffd6d90b
2 changed files with 7 additions and 0 deletions
+4
View File
@@ -1192,6 +1192,10 @@ task main_exception(type: RunKonanTest) {
source = "runtime/basic/main_exception.kt"
}
task failed_assert(type: RunKonanTest) {
expectedExitStatus = 1
source = "runtime/basic/failed_assert.kt"
}
task initializers0(type: RunKonanTest) {
goldValue = "main\n" +
@@ -0,0 +1,3 @@
fun main(args: Array<String>) {
assert(false)
}