Skip to content
Permalink
Browse files

test: replace some exit()s with returns.

  • Loading branch information
sezero committed Sep 10, 2019
1 parent 791df27 commit 32bb8b4b406832b70e483463867f2a9879c70259
Showing with 6 additions and 6 deletions.
  1. +1 −1 test/Makefile.os2
  2. +1 −1 test/controllermap.c
  3. +1 −1 test/testgamecontroller.c
  4. +1 −1 test/testhaptic.c
  5. +1 −1 test/testjoystick.c
  6. +1 −1 test/testrumble.c
@@ -62,7 +62,7 @@ $(TESTLIB): $(COBJS)
wlink SYS os2v2 libpath $(LIBPATH) lib {$(LIBS)} op q op el file {$<} name $@

.c.obj:
wcc386 $(CFLAGS) -wcd=107 -fo=$^@ $<
wcc386 $(CFLAGS) -fo=$^@ $<

# specials
testautomation.exe: $(TAOBJS)
@@ -773,7 +773,7 @@ int
main(int argc, char *argv[])
{
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "SDL compiled without Joystick support.\n");
exit(1);
return 1;
}

#endif
@@ -367,7 +367,7 @@ int
main(int argc, char *argv[])
{
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "SDL compiled without Joystick support.\n");
exit(1);
return 1;
}

#endif
@@ -363,7 +363,7 @@ int
main(int argc, char *argv[])
{
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "SDL compiled without Haptic support.\n");
exit(1);
return 1;
}

#endif
@@ -379,7 +379,7 @@ int
main(int argc, char *argv[])
{
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "SDL compiled without Joystick support.\n");
exit(1);
return 1;
}

#endif
@@ -147,7 +147,7 @@ int
main(int argc, char *argv[])
{
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "SDL compiled without Haptic support.\n");
exit(1);
return 1;
}

#endif

0 comments on commit 32bb8b4

Please sign in to comment.