From 31e23d57d39a4f2aab273b2d5ea588c5fe41f03a Mon Sep 17 00:00:00 2001 From: Philipp Wiesemann Date: Tue, 10 May 2016 21:12:48 +0200 Subject: [PATCH] Fixed error return values in filesystem test program. --- test/testfilesystem.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/testfilesystem.c b/test/testfilesystem.c index abd301c0e..61a6d5a5a 100644 --- a/test/testfilesystem.c +++ b/test/testfilesystem.c @@ -32,9 +32,8 @@ main(int argc, char *argv[]) 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 @@ main(int argc, char *argv[]) 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);