* [PATCH] test-stkutil: Modify the check logic of time zone
@ 2010-12-13 3:03 Yang Gu
2010-12-15 18:58 ` Denis Kenzior
0 siblings, 1 reply; 2+ messages in thread
From: Yang Gu @ 2010-12-13 3:03 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 689 bytes --]
---
unit/test-stkutil.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/unit/test-stkutil.c b/unit/test-stkutil.c
index 868d54b..666f4eb 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:
--
1.7.2.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-12-15 18:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-13 3:03 [PATCH] test-stkutil: Modify the check logic of time zone Yang Gu
2010-12-15 18:58 ` Denis Kenzior
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.