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

View File

@ -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;