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

This commit is contained in:
Ozkan Sezer
2024-09-05 00:28:32 +03:00
parent 2834d8b3b7
commit 37d3eea939
3 changed files with 3 additions and 3 deletions

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;