Browse Source

testlocale, testplatform, testqsort: replace exit(1) calls with return 1

Ozkan Sezer 7 months ago
parent
commit
37d3eea939
3 changed files with 3 additions and 3 deletions
  1. 1 1
      test/testlocale.c
  2. 1 1
      test/testplatform.c
  3. 1 1
      test/testqsort.c

+ 1 - 1
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;

+ 1 - 1
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;

+ 1 - 1
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;