mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-14 11:45:11 +01:00
Test g_strerror some more
Set a locale here, so we actually do conversion, and also run the loop far enough that we hit the 'unknown error' case.
This commit is contained in:
parent
36fac0849c
commit
30d95388e7
@ -1321,7 +1321,9 @@ test_strerror (void)
|
||||
gint i;
|
||||
const gchar *str;
|
||||
|
||||
for (i = 1; i < 100; i++)
|
||||
setlocale (LC_ALL, "C");
|
||||
|
||||
for (i = 1; i < 200; i++)
|
||||
{
|
||||
str = g_strerror (i);
|
||||
g_assert (str != NULL);
|
||||
|
Loading…
x
Reference in New Issue
Block a user