2
0
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:
Ulrich Drepper 2002-07-16 23:58:54 +00:00
parent 8acd635280
commit 20594bbaca

@ -41,14 +41,14 @@ main (void)
char *trans;
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)
{
printf ("catgets return NULL for %d\n", cnt);
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);
result = 1;