projects
/
platform
/
upstream
/
ofono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ee38e24
)
Update unit test for empty strings
author
Denis Kenzior
<denkenz@gmail.com>
Mon, 6 Jul 2009 20:24:26 +0000
(15:24 -0500)
committer
Denis Kenzior
<denkenz@gmail.com>
Tue, 7 Jul 2009 00:32:24 +0000
(19:32 -0500)
unit/test-util.c
patch
|
blob
|
history
diff --git
a/unit/test-util.c
b/unit/test-util.c
index
11cd6b3
..
32a167e
100644
(file)
--- a/
unit/test-util.c
+++ b/
unit/test-util.c
@@
-188,8
+188,11
@@
static void test_invalid()
res = convert_gsm_to_utf8(invalid_gsm_extended, 0, &nread, &nwritten,
0);
- g_assert(res
== NULL
);
+ g_assert(res);
g_assert(nread == 0);
+ g_assert(nwritten == 0);
+ g_assert(res[0] == '\0');
+ g_free(res);
res = convert_gsm_to_utf8(invalid_gsm_extended,
sizeof(invalid_gsm_extended),