Fixed error return values in filesystem test program.
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Tue, 10 May 2016 21:12:48 +0200
changeset 10164 939647e604d1
parent 10163 0f89301aae00
child 10165 b30e5eed2600
Fixed error return values in filesystem test program.
test/testfilesystem.c
--- a/test/testfilesystem.c	Sat May 07 21:41:59 2016 -0400
+++ b/test/testfilesystem.c	Tue May 10 21:12:48 2016 +0200
@@ -32,9 +32,8 @@
     if(base_path == NULL){
       SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Couldn't find base path: %s\n",
                    SDL_GetError());
-      return 0;
+      return 1;
     }
-
     SDL_Log("base path: '%s'\n", base_path);
     SDL_free(base_path);
 
@@ -42,7 +41,7 @@
     if(pref_path == NULL){
       SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Couldn't find pref path: %s\n",
                    SDL_GetError());
-      return 0;
+      return 1;
     }
     SDL_Log("pref path: '%s'\n", pref_path); 
     SDL_free(pref_path);