mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-mgw.git
synced 2025-10-23 08:12:01 +00:00
mgcp_test: tweak test failure output
Change-Id: Ibfc80f06b2811cc32fe38518b11efd6764b347ee
This commit is contained in:
@@ -541,7 +541,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)
|
||||
|
@@ -599,7 +599,8 @@ static void test_messages(void)
|
||||
OSMO_ASSERT(false);
|
||||
}
|
||||
} 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);
|
||||
OSMO_ASSERT(false);
|
||||
}
|
||||
msgb_free(msg);
|
||||
|
Reference in New Issue
Block a user