>From f423fffcc949e9f36b9f0928d278de533cbeeab3 Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Sun, 25 May 2014 17:54:31 +0200 Subject: [PATCH 2/2] TESTS: check dbus mock result --- src/tests/sbus_codegen_tests.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/tests/sbus_codegen_tests.c b/src/tests/sbus_codegen_tests.c index ccd15ff11948dfd42586425552a0ce0f4d4d85d5..0c979fdc1eb4099a1d6e07f54ca0434e6f7b8471 100644 --- a/src/tests/sbus_codegen_tests.c +++ b/src/tests/sbus_codegen_tests.c @@ -638,6 +638,7 @@ START_TEST(test_marshal_basic_types) ck_assert(ctx != NULL); client = test_dbus_setup_mock(ctx, NULL, pilot_test_server_init, NULL); + ck_assert(client != NULL); reply = test_dbus_call_sync(client, "/test/leela", @@ -816,6 +817,7 @@ START_TEST(test_get_basic_types) ck_assert(ctx != NULL); client = test_dbus_setup_mock(ctx, NULL, pilot_test_server_init, NULL); + ck_assert(client != NULL); call_get(client, "/test/leela", test_pilot_meta.name, "boolean", DBUS_TYPE_BOOLEAN, &bool_val); @@ -985,6 +987,7 @@ START_TEST(test_get_basic_array_types) ck_assert(ctx != NULL); client = test_dbus_setup_mock(ctx, NULL, pilot_test_server_init, NULL); + ck_assert(client != NULL); call_get_array(client, "/test/leela", test_pilot_meta.name, "byte_array", DBUS_TYPE_BYTE, (void **) &byte_arr_val, &byte_arr_len); @@ -1287,6 +1290,7 @@ START_TEST(test_getall_basic_types) ck_assert(ctx != NULL); client = test_dbus_setup_mock(ctx, NULL, pilot_test_server_init, NULL); + ck_assert(client != NULL); reply = test_dbus_call_sync(client, "/test/leela", -- 1.9.0