[glib/glib-2-34] Bug 633117: glib fails tests if /etc/localtime is not properly set
- From: John Ralls <jralls src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/glib-2-34] Bug 633117: glib fails tests if /etc/localtime is not properly set
- Date: Wed, 19 Dec 2012 00:41:33 +0000 (UTC)
commit 8d28cde2aa45f648024d2e67ada1ffb3790b5d8a
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 2cc036a..f36a24a 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];
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]