SDL-1.2: testiconv: Print the total number of errors at the end

From 0cbf07804d7a00a0fc998dcb6129fadfc8b0fe6e Mon Sep 17 00:00:00 2001
From: Cameron Cawley <[EMAIL REDACTED]>
Date: Sat, 24 Sep 2022 15:49:38 +0100
Subject: [PATCH] testiconv: Print the total number of errors at the end

---
 test/testiconv.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/test/testiconv.c b/test/testiconv.c
index 7e71320c..5b2ae8d9 100644
--- a/test/testiconv.c
+++ b/test/testiconv.c
@@ -69,5 +69,7 @@ int main(int argc, char *argv[])
 		fputs(test[0], stdout);
 		SDL_free(test[0]);
 	}
+
+	fprintf(stderr, "\nTotal errors: %d\n", errors);
 	return (errors ? errors + 1 : 0);
 }