(main): Print the locale name as well in the error message.
This commit is contained in:
parent
5a59a3a514
commit
22b04aad10
|
@ -1,5 +1,5 @@
|
||||||
/* Testing the implementation of strfmon(3).
|
/* Testing the implementation of strfmon(3).
|
||||||
Copyright (C) 1996, 1997 Free Software Foundation, Inc.
|
Copyright (C) 1996, 1997, 2000 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
Contributed by Jochen Hein <jochen.hein@delphi.central.de>, 1997.
|
Contributed by Jochen Hein <jochen.hein@delphi.central.de>, 1997.
|
||||||
|
|
||||||
|
@ -60,8 +60,9 @@ main (int argc, char *argv[])
|
||||||
|
|
||||||
if (strcmp (s, argv[4]) != 0)
|
if (strcmp (s, argv[4]) != 0)
|
||||||
{
|
{
|
||||||
printf ("format: \"%s\", expected: \"%s\", got: \"%s\" => %s\n",
|
printf ("\
|
||||||
argv[2], argv[4], s,
|
locale: \"%s\", format: \"%s\", expected: \"%s\", got: \"%s\" => %s\n",
|
||||||
|
argv[1], argv[2], argv[4], s,
|
||||||
strcmp (s, argv[4]) != 0 ? "false" : "correct");
|
strcmp (s, argv[4]) != 0 ? "false" : "correct");
|
||||||
exit (EXIT_FAILURE);
|
exit (EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue