summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2014-05-25 17:54:31 +0200
committerJakub Hrozek <jhrozek@redhat.com>2014-05-27 10:52:55 +0200
commitd8c2d3c5e6d9fa36bd6a53a40549af016924dfc3 (patch)
treef172df1d0bd32d66b588957e603850c9cd4d6543 /src
parent9b0e541f37f780c31c69c22c663589b87e4e788b (diff)
downloadsssd-d8c2d3c5e6d9fa36bd6a53a40549af016924dfc3.tar.gz
sssd-d8c2d3c5e6d9fa36bd6a53a40549af016924dfc3.tar.xz
sssd-d8c2d3c5e6d9fa36bd6a53a40549af016924dfc3.zip
TESTS: check dbus mock result
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>
Diffstat (limited to 'src')
-rw-r--r--src/tests/sbus_codegen_tests.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tests/sbus_codegen_tests.c b/src/tests/sbus_codegen_tests.c
index 765fcec41..358dce62d 100644
--- a/src/tests/sbus_codegen_tests.c
+++ b/src/tests/sbus_codegen_tests.c
@@ -639,6 +639,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",
@@ -817,6 +818,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);
@@ -986,6 +988,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);
@@ -1290,6 +1293,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",