Improve test logging output

This commit is contained in:
Marc Di Luzio
2019-02-07 19:20:41 +00:00
parent cbf7f975d3
commit f7dce41d8a
2 changed files with 29 additions and 23 deletions

View File

@@ -155,16 +155,8 @@ int main(int argc, char *argv[])
exit(EXIT_SUCCESS);
break;
case 't':
if ((status = game_mode_run_client_tests()) == 0) {
LOG_MSG("gamemode tests succeeded\n");
exit(EXIT_SUCCESS);
} else if (status == -1) {
LOG_ERROR("gamemode tests failed\n");
exit(EXIT_FAILURE);
} else {
LOG_ERROR("gamemode test results unknown: %d\n", status);
exit(EXIT_FAILURE);
}
status = game_mode_run_client_tests();
exit(status);
break;
case 'v':
LOG_MSG(VERSION_TEXT);