summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRichard Mudgett <rmudgett@digium.com>2017-04-28 12:30:34 -0500
committerRichard Mudgett <rmudgett@digium.com>2017-05-09 12:57:57 -0500
commitae7689f09333d88867a5eb6feeec8437c17dc1d2 (patch)
tree7ae4cdd9c600a5d5a16085f670be01c2f7211ca2 /tests
parentc2906dfa05ad6f2d3b952d21d09178e724180e95 (diff)
SDP: Update ast_get_topology_from_sdp() to keep RTP map.
* Add failure exits to ast_get_topology_from_sdp(). Change-Id: I4cc85c1ede8d712766ed20f544dbcef04c8c1049
Diffstat (limited to 'tests')
-rw-r--r--tests/test_sdp.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/test_sdp.c b/tests/test_sdp.c
index a5d3710d8..408888fc0 100644
--- a/tests/test_sdp.c
+++ b/tests/test_sdp.c
@@ -623,7 +623,11 @@ AST_TEST_DEFINE(sdp_to_topology)
goto end;
}
- topology = ast_get_topology_from_sdp(sdp);
+ topology = ast_get_topology_from_sdp(sdp, 0);
+ if (!topology) {
+ res = AST_TEST_FAIL;
+ goto end;
+ }
if (ast_stream_topology_get_count(topology) != 3) {
ast_test_status_update(test, "Unexpected topology count '%d'. Expecting 2\n",