diff -r 6a13fe0fc19e -r 4a80c6053a66 test/harness/testcaseio.c --- a/test/harness/testcaseio.c Mon Jan 30 00:36:31 2012 +0000 +++ b/test/harness/testcaseio.c Mon Jan 30 23:32:47 2012 +0000 @@ -9,7 +9,7 @@ /* * Read a testcase in from a file. - * On error, print a suitable message on stderr and return NULL. + * On error, print a suitable message using g_printerr and return NULL. * The returned testcase should be freed with testcase_free(). */ Testcase *testcase_parse_file(const char *filename) @@ -25,7 +25,7 @@ return NULL; if (!*testcase_parser_get_flag(parser)) { - fprintf(stderr,"%s: Not a valid testcase (flag)\n",filename); + g_printerr("%s: Not a valid testcase (flag)\n",filename); testcase_parser_free(parser); return NULL; } @@ -49,7 +49,7 @@ * file on somebody's computer by getting them to run a * testcase! */ - fprintf(stderr, + g_printerr( "%s: Input files may not have a directory component\n",arg); g_free(s); g_free(arg); @@ -76,7 +76,7 @@ } else { - fprintf(stderr,"%s: Not a valid testcase (%s)\n",filename,tag); + g_printerr("%s: Not a valid testcase (%s)\n",filename,tag); testcase_free(testcase); testcase_parser_free(parser); return NULL; @@ -86,10 +86,10 @@ if (!testcase_parser_at_eof(parser)) { if (found_tag) - fprintf(stderr,"%s: Not a valid testcase (garbage at end)\n", + g_printerr("%s: Not a valid testcase (garbage at end)\n", filename); else - fprintf(stderr,"%s: Not a valid testcase (no valid tags)\n", + g_printerr("%s: Not a valid testcase (no valid tags)\n", filename); testcase_free(testcase); testcase_parser_free(parser);