test: replace some exit()s with returns.
authorOzkan Sezer <sezeroz@gmail.com>
Tue, 10 Sep 2019 10:03:20 +0300
changeset 13070d953f28d33e3
parent 13069 f0b633817471
child 13071 0c66be754e29
test: replace some exit()s with returns.
test/Makefile.os2
test/controllermap.c
test/testgamecontroller.c
test/testhaptic.c
test/testjoystick.c
test/testrumble.c
     1.1 --- a/test/Makefile.os2	Mon Sep 09 13:50:46 2019 -0700
     1.2 +++ b/test/Makefile.os2	Tue Sep 10 10:03:20 2019 +0300
     1.3 @@ -62,7 +62,7 @@
     1.4    wlink SYS os2v2 libpath $(LIBPATH) lib {$(LIBS)} op q op el file {$<} name $@
     1.5  
     1.6  .c.obj:
     1.7 -  wcc386 $(CFLAGS) -wcd=107 -fo=$^@ $<
     1.8 +  wcc386 $(CFLAGS) -fo=$^@ $<
     1.9  
    1.10  # specials
    1.11  testautomation.exe: $(TAOBJS)
     2.1 --- a/test/controllermap.c	Mon Sep 09 13:50:46 2019 -0700
     2.2 +++ b/test/controllermap.c	Tue Sep 10 10:03:20 2019 +0300
     2.3 @@ -773,7 +773,7 @@
     2.4  main(int argc, char *argv[])
     2.5  {
     2.6      SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "SDL compiled without Joystick support.\n");
     2.7 -    exit(1);
     2.8 +    return 1;
     2.9  }
    2.10  
    2.11  #endif
     3.1 --- a/test/testgamecontroller.c	Mon Sep 09 13:50:46 2019 -0700
     3.2 +++ b/test/testgamecontroller.c	Tue Sep 10 10:03:20 2019 +0300
     3.3 @@ -367,7 +367,7 @@
     3.4  main(int argc, char *argv[])
     3.5  {
     3.6      SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "SDL compiled without Joystick support.\n");
     3.7 -    exit(1);
     3.8 +    return 1;
     3.9  }
    3.10  
    3.11  #endif
     4.1 --- a/test/testhaptic.c	Mon Sep 09 13:50:46 2019 -0700
     4.2 +++ b/test/testhaptic.c	Tue Sep 10 10:03:20 2019 +0300
     4.3 @@ -363,7 +363,7 @@
     4.4  main(int argc, char *argv[])
     4.5  {
     4.6      SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "SDL compiled without Haptic support.\n");
     4.7 -    exit(1);
     4.8 +    return 1;
     4.9  }
    4.10  
    4.11  #endif
     5.1 --- a/test/testjoystick.c	Mon Sep 09 13:50:46 2019 -0700
     5.2 +++ b/test/testjoystick.c	Tue Sep 10 10:03:20 2019 +0300
     5.3 @@ -379,7 +379,7 @@
     5.4  main(int argc, char *argv[])
     5.5  {
     5.6      SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "SDL compiled without Joystick support.\n");
     5.7 -    exit(1);
     5.8 +    return 1;
     5.9  }
    5.10  
    5.11  #endif
     6.1 --- a/test/testrumble.c	Mon Sep 09 13:50:46 2019 -0700
     6.2 +++ b/test/testrumble.c	Tue Sep 10 10:03:20 2019 +0300
     6.3 @@ -147,7 +147,7 @@
     6.4  main(int argc, char *argv[])
     6.5  {
     6.6      SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "SDL compiled without Haptic support.\n");
     6.7 -    exit(1);
     6.8 +    return 1;
     6.9  }
    6.10  
    6.11  #endif