[glib] Test g_strerror some more
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] Test g_strerror some more
- Date: Fri, 28 Aug 2015 20:06:41 +0000 (UTC)
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]