[glib] Bug 633117: glib fails tests if /etc/localtime is not properly set



commit e6d45972fc0f75345b7ba19ac3d554cf801ba86a
Author: John Ralls <jralls ceridwen us>
Date:   Wed Dec 19 00:40:08 2012 +0000

    Bug 633117: glib fails tests if /etc/localtime is not properly set

 glib/tests/gdatetime.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/glib/tests/gdatetime.c b/glib/tests/gdatetime.c
index d8bc65a..66c0432 100644
--- a/glib/tests/gdatetime.c
+++ b/glib/tests/gdatetime.c
@@ -794,7 +794,11 @@ test_GDateTime_get_day_of_year (void)
 static void
 test_GDateTime_printf (void)
 {
-  gchar dst[16];
+/* 64 seems big, but one zoneinfo file, Factory, has an abbreviation
+ * that long, and it will cause the test to fail if dst isn't big
+ * enough.
+ */
+  gchar dst[64];
   struct tm tt;
   time_t t;
   gchar t_str[16];



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