test/testfilesystem.c
changeset 11222 083133ba8f9b
parent 10737 3406a0f8b041
child 11811 5d94cb6b24d3
     1.1 --- a/test/testfilesystem.c	Fri Aug 11 10:42:26 2017 -0700
     1.2 +++ b/test/testfilesystem.c	Fri Aug 11 11:32:00 2017 -0700
     1.3 @@ -46,6 +46,15 @@
     1.4      SDL_Log("pref path: '%s'\n", pref_path); 
     1.5      SDL_free(pref_path);
     1.6  
     1.7 +    pref_path = SDL_GetPrefPath(NULL, "testfilesystem");
     1.8 +    if(pref_path == NULL){
     1.9 +      SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Couldn't find pref path without organization: %s\n",
    1.10 +                   SDL_GetError());
    1.11 +      return 1;
    1.12 +    }
    1.13 +    SDL_Log("pref path: '%s'\n", pref_path); 
    1.14 +    SDL_free(pref_path);
    1.15 +
    1.16      SDL_Quit();
    1.17      return 0;
    1.18  }