Fixed error return values in filesystem test program.
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Tue, 10 May 2016 21:12:48 +0200
changeset 10164939647e604d1
parent 10163 0f89301aae00
child 10165 b30e5eed2600
Fixed error return values in filesystem test program.
test/testfilesystem.c
     1.1 --- a/test/testfilesystem.c	Sat May 07 21:41:59 2016 -0400
     1.2 +++ b/test/testfilesystem.c	Tue May 10 21:12:48 2016 +0200
     1.3 @@ -32,9 +32,8 @@
     1.4      if(base_path == NULL){
     1.5        SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Couldn't find base path: %s\n",
     1.6                     SDL_GetError());
     1.7 -      return 0;
     1.8 +      return 1;
     1.9      }
    1.10 -
    1.11      SDL_Log("base path: '%s'\n", base_path);
    1.12      SDL_free(base_path);
    1.13  
    1.14 @@ -42,7 +41,7 @@
    1.15      if(pref_path == NULL){
    1.16        SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Couldn't find pref path: %s\n",
    1.17                     SDL_GetError());
    1.18 -      return 0;
    1.19 +      return 1;
    1.20      }
    1.21      SDL_Log("pref path: '%s'\n", pref_path); 
    1.22      SDL_free(pref_path);