OSDN Git Service
(root)
/
android-x86
/
external-bluetooth-bluez.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
42d94c8
)
gobex: Assert correct io_cb count in transfer unit tests
author
Johan Hedberg
<johan.hedberg@intel.com>
Fri, 8 Jul 2011 09:48:32 +0000
(11:48 +0200)
committer
Marcel Holtmann
<marcel@holtmann.org>
Tue, 4 Dec 2012 21:22:00 +0000
(22:22 +0100)
unit/test-gobex-transfer.c
patch
|
blob
|
history
diff --git
a/unit/test-gobex-transfer.c
b/unit/test-gobex-transfer.c
index
192a8b7
..
e583d37
100644
(file)
--- a/
unit/test-gobex-transfer.c
+++ b/
unit/test-gobex-transfer.c
@@
-204,6
+204,8
@@
static void test_put_req(void)
g_main_loop_run(mainloop);
+ g_assert_cmpuint(d.count, ==, 2);
+
g_main_loop_unref(mainloop);
mainloop = NULL;
@@
-280,6
+282,8
@@
static void test_put_rsp(void)
g_main_loop_run(mainloop);
+ g_assert_cmpuint(d.count, ==, 1);
+
g_main_loop_unref(mainloop);
mainloop = NULL;
@@
-318,6
+322,8
@@
static void test_get_req(void)
g_main_loop_run(mainloop);
+ g_assert_cmpuint(d.count, ==, 2);
+
g_main_loop_unref(mainloop);
mainloop = NULL;
@@
-377,6
+383,8
@@
static void test_get_rsp(void)
g_main_loop_run(mainloop);
+ g_assert_cmpuint(d.count, ==, 1);
+
g_main_loop_unref(mainloop);
mainloop = NULL;