test/testiconv.c
changeset 7639 9406b7dd2f2d
parent 7517 965d57022c01
child 7719 31b5f9ff36ca
     1.1 --- a/test/testiconv.c	Mon Aug 12 22:00:21 2013 -0700
     1.2 +++ b/test/testiconv.c	Wed Aug 14 23:30:10 2013 -0700
     1.3 @@ -49,12 +49,15 @@
     1.4      FILE *file;
     1.5      int errors = 0;
     1.6  
     1.7 +    /* Enable standard application logging */
     1.8 +    SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
     1.9 +
    1.10      if (!argv[1]) {
    1.11          argv[1] = "utf8.txt";
    1.12      }
    1.13      file = fopen(argv[1], "rb");
    1.14      if (!file) {
    1.15 -        fprintf(stderr, "Unable to open %s\n", argv[1]);
    1.16 +        SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Unable to open %s\n", argv[1]);
    1.17          return (1);
    1.18      }
    1.19  
    1.20 @@ -69,7 +72,7 @@
    1.21              test[0] = SDL_iconv_string(formats[i], "UCS-4", ucs4, len);
    1.22              test[1] = SDL_iconv_string("UCS-4", formats[i], test[0], len);
    1.23              if (!test[1] || SDL_memcmp(test[1], ucs4, len) != 0) {
    1.24 -                fprintf(stderr, "FAIL: %s\n", formats[i]);
    1.25 +                SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "FAIL: %s\n", formats[i]);
    1.26                  ++errors;
    1.27              }
    1.28              if (test[0]) {