test: replace some exit()s with returns.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78
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 @@ $(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)
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 @@ int
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 @@ int
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 @@ int
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 @@ int
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 @@ int
main(int argc, char *argv[])
{
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "SDL compiled without Haptic support.\n");
- exit(1);
+ return 1;
}
#endif