aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--openbsc/tests/mgcp/mgcp_test.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/openbsc/tests/mgcp/mgcp_test.c b/openbsc/tests/mgcp/mgcp_test.c
index 570a0c927..154d0f308 100644
--- a/openbsc/tests/mgcp/mgcp_test.c
+++ b/openbsc/tests/mgcp/mgcp_test.c
@@ -543,7 +543,8 @@ static void test_messages(void)
if (msg)
printf("%s failed '%s'\n", t->name, (char *) msg->data);
} else if (strcmp((char *) msg->data, t->exp_resp) != 0)
- printf("%s failed '%s'\n", t->name, (char *) msg->data);
+ printf("%s failed.\nExpected:\n%s\nGot:\n%s\n",
+ t->name, t->exp_resp, (char *) msg->data);
msgb_free(msg);
if (dummy_packets)
@@ -653,7 +654,8 @@ static void test_retransmission(void)
msg = mgcp_handle_message(cfg, inp);
msgb_free(inp);
if (strcmp((char *) msg->data, t->exp_resp) != 0)
- printf("%s failed '%s'\n", t->name, (char *) msg->data);
+ printf("%s failed.\nExpected:\n%s\nGot:\n%s\n",
+ t->name, t->exp_resp, (char *) msg->data);
msgb_free(msg);
/* Retransmit... */
@@ -662,7 +664,8 @@ static void test_retransmission(void)
msg = mgcp_handle_message(cfg, inp);
msgb_free(inp);
if (strcmp((char *) msg->data, t->exp_resp) != 0)
- printf("%s failed '%s'\n", t->name, (char *) msg->data);
+ printf("%s failed.\nExpected:\n%s\nGot:\n%s\n",
+ t->name, t->exp_resp, (char *) msg->data);
msgb_free(msg);
}