summaryrefslogtreecommitdiffstats
path: root/unit
diff options
context:
space:
mode:
authorYang Gu <yang.gu@intel.com>2010-12-13 11:03:23 +0800
committerDenis Kenzior <denkenz@gmail.com>2010-12-16 18:40:18 -0600
commit26575211eb00dd8652630b93170ec45bef4c480b (patch)
treea5fc909215deec3f7f867d6edc4747fba4c4368b /unit
parentc37f15547863d8b65fcd5c1273d447c4c30e125c (diff)
downloadofono-26575211eb00dd8652630b93170ec45bef4c480b.tar.bz2
test-stkutil: Modify the check logic of time zone
Diffstat (limited to 'unit')
-rw-r--r--unit/test-stkutil.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/unit/test-stkutil.c b/unit/test-stkutil.c
index 868d54bb..185dfdde 100644
--- a/unit/test-stkutil.c
+++ b/unit/test-stkutil.c
@@ -245,7 +245,11 @@ static void check_gsm_sms(const struct sms *command,
g_assert(ca->hour == ta->hour);
g_assert(ca->minute == ta->minute);
g_assert(ca->second == ta->second);
- g_assert(ca->timezone == ta->timezone);
+ g_assert(ca->has_timezone == ta->has_timezone);
+
+ if (ta->has_timezone)
+ g_assert(ca->timezone == ta->timezone);
+
break;
}
case SMS_VALIDITY_PERIOD_FORMAT_ENHANCED: