From e6d45972fc0f75345b7ba19ac3d554cf801ba86a 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 d8bc65a6c..66c04323c 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];