summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2014-05-25 17:50:42 +0200
committerJakub Hrozek <jhrozek@redhat.com>2014-05-27 10:52:48 +0200
commit9b0e541f37f780c31c69c22c663589b87e4e788b (patch)
tree8ae39f8e639e3682f7bfe118ce899956e7d93c50
parentbdbb5cd11752d79488e5d87b908103322e010df1 (diff)
downloadsssd-9b0e541f37f780c31c69c22c663589b87e4e788b.tar.gz
sssd-9b0e541f37f780c31c69c22c663589b87e4e788b.tar.xz
sssd-9b0e541f37f780c31c69c22c663589b87e4e788b.zip
TESTS: check allocation result
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>
-rw-r--r--src/tests/sbus_codegen_tests.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/tests/sbus_codegen_tests.c b/src/tests/sbus_codegen_tests.c
index dfcc71584..765fcec41 100644
--- a/src/tests/sbus_codegen_tests.c
+++ b/src/tests/sbus_codegen_tests.c
@@ -636,6 +636,8 @@ START_TEST(test_marshal_basic_types)
DBusMessage *reply;
ctx = talloc_new(NULL);
+ ck_assert(ctx != NULL);
+
client = test_dbus_setup_mock(ctx, NULL, pilot_test_server_init, NULL);
reply = test_dbus_call_sync(client,
@@ -812,6 +814,8 @@ START_TEST(test_get_basic_types)
double double_val;
ctx = talloc_new(NULL);
+ ck_assert(ctx != NULL);
+
client = test_dbus_setup_mock(ctx, NULL, pilot_test_server_init, NULL);
call_get(client, "/test/leela", test_pilot_meta.name, "boolean",
@@ -979,6 +983,8 @@ START_TEST(test_get_basic_array_types)
int double_arr_len;
ctx = talloc_new(NULL);
+ ck_assert(ctx != NULL);
+
client = test_dbus_setup_mock(ctx, NULL, pilot_test_server_init, NULL);
call_get_array(client, "/test/leela", test_pilot_meta.name, "byte_array",
@@ -1281,6 +1287,8 @@ START_TEST(test_getall_basic_types)
{ NULL, false, 0, 0, { .bool_val = false } }};
ctx = talloc_new(NULL);
+ ck_assert(ctx != NULL);
+
client = test_dbus_setup_mock(ctx, NULL, pilot_test_server_init, NULL);
reply = test_dbus_call_sync(client,