summaryrefslogtreecommitdiffstats
path: root/openbsc/tests
diff options
context:
space:
mode:
authorJacob Erlbeck <jerlbeck@sysmocom.de>2015-04-27 09:13:48 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2015-04-29 14:02:40 +0200
commitddc0e05604d2c004c08c23fe3c3e2e6ce9b7eabb (patch)
treecdb865ca543565403704d9abad9e64dd88c05eba /openbsc/tests
parent5a2484b10e8aeec3841833b79a8973cacb37bcee (diff)
mgcp/test: Fix mgcp-transcoding assertion (Coverity)
In test_rtp_seq_state an assignment is accidently done within an assertion. This commit changes that into a comparison as it was intended. Fixes: Coverity CID 1295457, 1295458 Sponsored-by: On-Waves ehf
Diffstat (limited to 'openbsc/tests')
-rw-r--r--openbsc/tests/mgcp/mgcp_transcoding_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/tests/mgcp/mgcp_transcoding_test.c b/openbsc/tests/mgcp/mgcp_transcoding_test.c
index 1b8001e..c5c0a0b 100644
--- a/openbsc/tests/mgcp/mgcp_transcoding_test.c
+++ b/openbsc/tests/mgcp/mgcp_transcoding_test.c
@@ -295,7 +295,7 @@ static void test_rtp_seq_state(void)
OSMO_ASSERT(cont >= 0);
OSMO_ASSERT(state->is_running);
OSMO_ASSERT(state->next_seq == 2);
- OSMO_ASSERT(state->next_time = 240);
+ OSMO_ASSERT(state->next_time == 240);
/* verify that the right timestamp was written */
OSMO_ASSERT(len == audio_packets_pcma[0].len);