testiconv: Print the total number of errors at the end

This commit is contained in:
Cameron Cawley 2022-09-24 16:55:10 +01:00 committed by Sam Lantinga
parent 8d2cb1555e
commit 3a6b7c9c69
1 changed files with 2 additions and 0 deletions

View File

@ -86,5 +86,7 @@ main(int argc, char *argv[])
SDL_free(test[0]);
}
fclose(file);
SDL_LogInfo(SDL_LOG_CATEGORY_APPLICATION, "Total errors: %d\n", errors);
return (errors ? errors + 1 : 0);
}