tests: print error messages when eldbus tests fail to acquire requested name

Summary: Depends on D6199

Reviewers: stefan_schmidt, cedric

Reviewed By: cedric

Subscribers: cedric, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D6200
This commit is contained in:
Mike Blumenkrantz 2018-05-29 13:24:44 +02:00 committed by Stefan Schmidt
parent 99894d258c
commit cba7f31a3a
1 changed files with 3 additions and 2 deletions

View File

@ -166,8 +166,9 @@ _fake_server_name_request_cb(void *data EINA_UNUSED,
const Eldbus_Message *msg,
Eldbus_Pending *pending EINA_UNUSED)
{
if (eldbus_message_error_get(msg, NULL, NULL))
ck_abort_msg("error on _fake_server_name_request_cb");
const char *name, *text;
if (eldbus_message_error_get(msg, &name, &text))
ck_abort_msg("error on _fake_server_name_request_cb: %s %s", name, text);
unsigned int reply;
if (!eldbus_message_arguments_get(msg, "u", &reply))