[glib] Test g_strerror some more



commit 30d95388e7835487e5ed67334bddc2a45c0846a5
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Aug 28 16:05:05 2015 -0400

    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.

 glib/tests/strfuncs.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/glib/tests/strfuncs.c b/glib/tests/strfuncs.c
index 27dfb45..694b124 100644
--- a/glib/tests/strfuncs.c
+++ b/glib/tests/strfuncs.c
@@ -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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]