test: add stderr logging when a test fails.

It allows to get some more info in Testing/Temporary/LastTest.log to
debug detection issues.
This commit is contained in:
Jehan 2021-11-09 14:32:03 +01:00
parent bfa4b10d4d
commit c9446e540d

View File

@ -153,6 +153,13 @@ main(int argc, char ** argv)
(strcmp(lang, expected_lang) != 0);
}
if (success == 1)
{
fprintf(stderr,
"uchardet-tests FAILED: found %s/%s - expecting %s/%s\n",
lang, charset, expected_lang, expected_charset);
}
free(path);
free(charset);
free(lang);