mirror of
https://gitlab.freedesktop.org/uchardet/uchardet.git
synced 2025-12-11 22:20:05 +08:00
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:
parent
bfa4b10d4d
commit
c9446e540d
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user