stktest: Be more explicit with errors

This commit is contained in:
Denis Kenzior 2012-10-18 11:52:45 -05:00
parent 74d0b74cfe
commit 15fbd24ce6
1 changed files with 6 additions and 2 deletions

View File

@ -281,7 +281,9 @@ static DBusMessage *func(DBusConnection *conn, DBusMessage *msg, \
func = test->agent_func; \
\
if (strcmp(test->method, method_name)) { \
g_printerr("Wrong method called!\n"); \
g_printerr("Wrong method called!" \
" Expected: %s, Got: %s\n", \
test->method, method_name); \
__stktest_test_finish(FALSE); \
return stktest_error_failed(msg); \
} \
@ -334,7 +336,9 @@ static DBusMessage *func(DBusConnection *conn, DBusMessage *msg, \
func = test->agent_func; \
\
if (strcmp(test->method, method_name)) { \
g_printerr("Wrong method called!\n"); \
g_printerr("Wrong method called!" \
" Expected: %s, Got: %s\n", \
test->method, method_name); \
__stktest_test_finish(FALSE); \
return stktest_error_failed(msg); \
} \