runtime: use exitStatus == 1 if main finished with exception

Also update the corresponding test.
This commit is contained in:
Svyatoslav Scherbina
2017-03-10 13:02:53 +07:00
committed by SvyatoslavScherbina
parent 051f42667c
commit 13bbd7af81
3 changed files with 15 additions and 7 deletions
+1
View File
@@ -1141,6 +1141,7 @@ task spread_operator_0(type: RunKonanTest) {
task main_exception(type: RunKonanTest) {
// TODO: cannot currently check the output because the exact stacktrace strings are unpredictable.
// goldValue = "Uncaught exception from Kotlin's main: Throwable\n"
expectedExitStatus = 1
source = "runtime/basic/main_exception.kt"
}