From 8d28cde2aa45f648024d2e67ada1ffb3790b5d8a Mon Sep 17 00:00:00 2001 From: John Ralls Date: Wed, 19 Dec 2012 00:40:08 +0000 Subject: [PATCH] Bug 633117: glib fails tests if /etc/localtime is not properly set --- glib/tests/gdatetime.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/glib/tests/gdatetime.c b/glib/tests/gdatetime.c index 2cc036a9b..f36a24a19 100644 --- a/glib/tests/gdatetime.c +++ b/glib/tests/gdatetime.c @@ -779,7 +779,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];