Skip to content

Commit

Permalink
testlocale, testplatform, testqsort: replace exit(1) calls with return 1
Browse files Browse the repository at this point in the history
  • Loading branch information
sezero committed Sep 4, 2024
1 parent 2834d8b commit 37d3eea
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/testlocale.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion test/testplatform.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion test/testqsort.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 37d3eea

Please sign in to comment.