mirror of
git://sourceware.org/git/glibc.git
synced 2025-04-24 14:41:06 +08:00
Don't expect results for untranslated messages.
This commit is contained in:
parent
8acd635280
commit
20594bbaca
@ -41,14 +41,14 @@ main (void)
|
|||||||
char *trans;
|
char *trans;
|
||||||
|
|
||||||
trans = catgets (cd, 1, 1 + cnt,
|
trans = catgets (cd, 1, 1 + cnt,
|
||||||
"+#+# is this comes backs it's an error");
|
"+#+# if this comes backs it's an error");
|
||||||
|
|
||||||
if (trans == NULL)
|
if (trans == NULL)
|
||||||
{
|
{
|
||||||
printf ("catgets return NULL for %d\n", cnt);
|
printf ("catgets return NULL for %d\n", cnt);
|
||||||
result = 1;
|
result = 1;
|
||||||
}
|
}
|
||||||
else if (strcmp (trans, msgs[cnt]) != 0)
|
else if (strcmp (trans, msgs[cnt]) != 0 && msgs[cnt][0] != '\0')
|
||||||
{
|
{
|
||||||
printf ("expected \"%s\", got \"%s\"\n", msgs[cnt], trans);
|
printf ("expected \"%s\", got \"%s\"\n", msgs[cnt], trans);
|
||||||
result = 1;
|
result = 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user