Bug 633117: glib fails tests if /etc/localtime is not properly set
authorJohn Ralls <jralls@ceridwen.us>
Wed, 19 Dec 2012 00:40:08 +0000 (00:40 +0000)
committerJohn Ralls <jralls@ceridwen.us>
Wed, 19 Dec 2012 00:40:08 +0000 (00:40 +0000)
glib/tests/gdatetime.c

index d8bc65a..66c0432 100644 (file)
@@ -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];