sdl2-compat: update tests from latest SDL2

From 3859f6b11fc167913cf3cb306120a475c839d38b Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Thu, 5 Sep 2024 00:28:50 +0300
Subject: [PATCH] update tests from latest SDL2

---
 test/testlocale.c   | 2 +-
 test/testplatform.c | 2 +-
 test/testqsort.c    | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/test/testlocale.c b/test/testlocale.c
index 4d17cec..80040e9 100644
--- a/test/testlocale.c
+++ b/test/testlocale.c
@@ -63,7 +63,7 @@ int main(int argc, char **argv)
         if (consumed <= 0) {
             static const char *options[] = { "[--listen]", NULL };
             SDLTest_CommonLogUsage(state, argv[0], options);
-            exit(1);
+            return 1;
         }
 
         i += consumed;
diff --git a/test/testplatform.c b/test/testplatform.c
index e017ef6..58bfb65 100644
--- a/test/testplatform.c
+++ b/test/testplatform.c
@@ -472,7 +472,7 @@ int main(int argc, char *argv[])
         if (consumed <= 0) {
             static const char *options[] = { "[-q]", NULL };
             SDLTest_CommonLogUsage(state, argv[0], options);
-            exit(1);
+            return 1;
         }
 
         i += consumed;
diff --git a/test/testqsort.c b/test/testqsort.c
index 44dc337..2cf23a5 100644
--- a/test/testqsort.c
+++ b/test/testqsort.c
@@ -91,7 +91,7 @@ int main(int argc, char *argv[])
         if (consumed <= 0) {
             static const char *options[] = { "[SEED]", NULL };
             SDLTest_CommonLogUsage(state, argv[0], options);
-            exit(1);
+            return 1;
         }
 
         i += consumed;