aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2018-09-03 21:07:26 +0200
committerNeels Hofmeyr <neels@hofmeyr.de>2018-09-03 21:13:19 +0200
commitb1bb1fa18726a1ef2cbd8372a76055ca55e87a50 (patch)
tree48770de647bb7626f66c3497c308c85100108362 /tests
parent1d121483f6a8b1f1b738794eea118986fe116ff9 (diff)
mgcp_client_test: use "\r\n\r\n" instead of "\n\n"
The separator between MGCP and SDP section is typically "\r\n\r\n". For some reason the test so far used "\n\n" instead, rather use the standard separator. Change-Id: I41c73722e5fae00663bcf96de0b57b7155809a06
Diffstat (limited to 'tests')
-rw-r--r--tests/mgcp_client/mgcp_client_test.c4
-rw-r--r--tests/mgcp_client/mgcp_client_test.ok8
2 files changed, 6 insertions, 6 deletions
diff --git a/tests/mgcp_client/mgcp_client_test.c b/tests/mgcp_client/mgcp_client_test.c
index 84ba3b446..4e7e0a730 100644
--- a/tests/mgcp_client/mgcp_client_test.c
+++ b/tests/mgcp_client/mgcp_client_test.c
@@ -149,7 +149,7 @@ void test_crcx(void)
trans_id = dummy_mgcp_send(msg);
reply_to(trans_id, 200, "OK",
- "I: 1\n\n"
+ "I: 1\r\n\r\n"
"v=0\r\n"
"o=- 1 23 IN IP4 10.9.1.120\r\n"
"s=-\r\n"
@@ -336,7 +336,7 @@ void test_mgcp_client_cancel()
OSMO_ASSERT(mgcp_client_cancel(mgcp, trans_id) == 0);
fprintf(stderr, "- late response gets discarded\n");
- OSMO_ASSERT(reply_to(trans_id, 200, "OK", "I: 1\n\nv=0\r\n") == -ENOENT);
+ OSMO_ASSERT(reply_to(trans_id, 200, "OK", "I: 1\r\n\r\nv=0\r\n") == -ENOENT);
fprintf(stderr, "- canceling again does nothing\n");
OSMO_ASSERT(mgcp_client_cancel(mgcp, trans_id) == -ENOENT);
diff --git a/tests/mgcp_client/mgcp_client_test.ok b/tests/mgcp_client/mgcp_client_test.ok
index 58c4b82b8..4b1e78cef 100644
--- a/tests/mgcp_client/mgcp_client_test.ok
+++ b/tests/mgcp_client/mgcp_client_test.ok
@@ -11,8 +11,8 @@ M: loopback
composed response:
-----
200 1 OK
-I: 1
-
+I: 1
+
v=0
o=- 1 23 IN IP4 10.9.1.120
s=-
@@ -141,8 +141,8 @@ M: sendrecv
composed response:
-----
200 1 OK
-I: 1
-
+I: 1
+
v=0
-----