Skip to contentSkip to conversation

test-stkutil: Modify the check logic of time zone

PATCH In review Yang Gu 2 participants 2 messages Dec 13, 2010 – Dec 15, 2010

lore
Share & tools
lore

Yang Gu

author
#0 lore raw

PATCH 1/1 test-stkutil: Modify the check logic of time zone

---
 unit/test-stkutil.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
unit/test-stkutil.c +5 -1
index 868d54b..666f4eb 100644
@@ -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:
Signature · 1 line
1.7.2.3
#1 lore raw

Hi Yang,

Quoted 4 lines · Yang Gu
---
 unit/test-stkutil.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

Patch has been applied, thanks.

Regards,
-Denis