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:
Matthias Clasen 2015-08-28 16:05:05 -04:00
parent 36fac0849c
commit 30d95388e7

View File

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