OSDN Git Service

gobex: Assert correct io_cb count in transfer unit tests
authorJohan Hedberg <johan.hedberg@intel.com>
Fri, 8 Jul 2011 09:48:32 +0000 (11:48 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 4 Dec 2012 21:22:00 +0000 (22:22 +0100)
unit/test-gobex-transfer.c

index 192a8b7..e583d37 100644 (file)
@@ -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;