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

This commit is contained in:
John Ralls 2012-12-19 00:40:08 +00:00
parent c9939b0fc7
commit e6d45972fc

View File

@ -794,7 +794,11 @@ test_GDateTime_get_day_of_year (void)
static void static void
test_GDateTime_printf (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; struct tm tt;
time_t t; time_t t;
gchar t_str[16]; gchar t_str[16];