test: replace some exit()s with returns.
diff --git a/test/Makefile.os2 b/test/Makefile.os2
index 59866a0..4cc4cda 100644
--- a/test/Makefile.os2
+++ b/test/Makefile.os2
@@ -62,7 +62,7 @@
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)
diff --git a/test/controllermap.c b/test/controllermap.c
index b52baeb..61c015a 100644
--- a/test/controllermap.c
+++ b/test/controllermap.c
@@ -773,7 +773,7 @@
main(int argc, char *argv[])
{
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "SDL compiled without Joystick support.\n");
- exit(1);
+ return 1;
}
#endif
diff --git a/test/testgamecontroller.c b/test/testgamecontroller.c
index 4d3c939..8b7f488 100644
--- a/test/testgamecontroller.c
+++ b/test/testgamecontroller.c
@@ -367,7 +367,7 @@
main(int argc, char *argv[])
{
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "SDL compiled without Joystick support.\n");
- exit(1);
+ return 1;
}
#endif
diff --git a/test/testhaptic.c b/test/testhaptic.c
index bffe446..9613629 100644
--- a/test/testhaptic.c
+++ b/test/testhaptic.c
@@ -363,7 +363,7 @@
main(int argc, char *argv[])
{
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "SDL compiled without Haptic support.\n");
- exit(1);
+ return 1;
}
#endif
diff --git a/test/testjoystick.c b/test/testjoystick.c
index 16877a1..20e51f5 100644
--- a/test/testjoystick.c
+++ b/test/testjoystick.c
@@ -379,7 +379,7 @@
main(int argc, char *argv[])
{
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "SDL compiled without Joystick support.\n");
- exit(1);
+ return 1;
}
#endif
diff --git a/test/testrumble.c b/test/testrumble.c
index c8473f5..813eeb8 100644
--- a/test/testrumble.c
+++ b/test/testrumble.c
@@ -147,7 +147,7 @@
main(int argc, char *argv[])
{
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "SDL compiled without Haptic support.\n");
- exit(1);
+ return 1;
}
#endif