aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/tests/mgcp
diff options
context:
space:
mode:
authorJacob Erlbeck <jerlbeck@sysmocom.de>2014-01-16 16:50:41 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-01-20 08:27:03 +0100
commitead0529e076a1bd02b170796dc3895dabde7d2e8 (patch)
tree3ac421c43075a43ea4de9b7a260f7c63cd713c73 /openbsc/tests/mgcp
parente35fd1369762b4b59e2673275836869df379f2b6 (diff)
mgcp/test: Don't reset conn_mode between messages
Currently, the conn_mode field is reset after it has been checked. This patch disables this behaviour and only adds a mark (bit) to detect modifications. Sponsored-by: On-Waves ehf
Diffstat (limited to 'openbsc/tests/mgcp')
-rw-r--r--openbsc/tests/mgcp/mgcp_test.c4
-rw-r--r--openbsc/tests/mgcp/mgcp_test.ok1
2 files changed, 2 insertions, 3 deletions
diff --git a/openbsc/tests/mgcp/mgcp_test.c b/openbsc/tests/mgcp/mgcp_test.c
index 1f11b1d52..fa68867db 100644
--- a/openbsc/tests/mgcp/mgcp_test.c
+++ b/openbsc/tests/mgcp/mgcp_test.c
@@ -416,9 +416,7 @@ static void test_messages(void)
endp->net_end.packet_duration_ms = -1;
endp->local_options.pkt_period_min = 0;
endp->local_options.pkt_period_max = 0;
- endp->conn_mode = MGCP_CONN_NONE | CONN_UNMODIFIED;
- endp->net_end.output_enabled = 0;
- endp->bts_end.output_enabled = 0;
+ endp->conn_mode |= CONN_UNMODIFIED;
}
diff --git a/openbsc/tests/mgcp/mgcp_test.ok b/openbsc/tests/mgcp/mgcp_test.ok
index 3b645e6ac..fbe2566a7 100644
--- a/openbsc/tests/mgcp/mgcp_test.ok
+++ b/openbsc/tests/mgcp/mgcp_test.ok
@@ -21,6 +21,7 @@ Detected packet duration: 40
Requested packetetization period: 20-20
Connection mode: 1, BTS output enabled, NET output disabled
Testing MDCX3
+Dummy packets: 1
Packet duration not set
Requested packetization period not set
Connection mode not set