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

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);
}