test: output the test file path which we failed to open.

Also properly free the string in such case.
This commit is contained in:
Jehan 2017-05-14 20:27:36 +02:00
parent 94b10b9b29
commit 6cf13f108b

View File

@ -100,7 +100,9 @@ main(int argc, char ** argv)
{
/* Error opening the test file. */
fprintf(stderr,
"uchardet-tests: error opening the test file\n");
"uchardet-tests: error opening the test file \"%s\"\n",
filename);
free(filename);
return 1;
}