From 32bb8b4b406832b70e483463867f2a9879c70259 Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Tue, 10 Sep 2019 10:03:20 +0300 Subject: [PATCH] test: replace some exit()s with returns. --- test/Makefile.os2 | 2 +- test/controllermap.c | 2 +- test/testgamecontroller.c | 2 +- test/testhaptic.c | 2 +- test/testjoystick.c | 2 +- test/testrumble.c | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/test/Makefile.os2 b/test/Makefile.os2 index 59866a056..4cc4cda0b 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 b52baebfc..61c015a8e 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 4d3c93937..8b7f48873 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 bffe4467d..9613629e2 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 16877a152..20e51f59d 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 c8473f56a..813eeb838 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