1
0
Fork 0

Unittest should report a failure to the console

This commit is contained in:
Andreas Streichardt 2016-12-14 17:41:08 +01:00
parent 5b1d0bd30a
commit 31b41471a4
1 changed files with 6 additions and 2 deletions

View File

@ -247,7 +247,11 @@ function main(argv) {
UnitTest.unitTestPrettyPrintResults(r);
return r.crashed ? -1 : 0;
return r.status;
}
main(ARGUMENTS);
let result = main(ARGUMENTS);
if (!result) {
// force an error in the console
throw 'peng';
}