>From 1909b36b12fc8222a88bb6b1f82c4c08b28a7095 Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Sun, 25 May 2014 17:50:42 +0200 Subject: [PATCH 1/2] TESTS: check allocation result --- src/tests/sbus_codegen_tests.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/tests/sbus_codegen_tests.c b/src/tests/sbus_codegen_tests.c index 561a6a24809013437c6c5ea178359dc1248589b0..ccd15ff11948dfd42586425552a0ce0f4d4d85d5 100644 --- a/src/tests/sbus_codegen_tests.c +++ b/src/tests/sbus_codegen_tests.c @@ -635,6 +635,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, @@ -811,6 +813,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", @@ -978,6 +982,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", @@ -1278,6 +1284,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, -- 1.9.0