From 37d3eea93973c2d7eecb0a9ac967c5b5045447ae Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Thu, 5 Sep 2024 00:28:32 +0300 Subject: [PATCH] testlocale, testplatform, testqsort: replace exit(1) calls with return 1 --- 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 4d17cec13d7a8..80040e9c8e13a 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 e017ef65da02f..58bfb65050546 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 44dc337f2ddcf..2cf23a518930b 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;