Skip to content

Commit

Permalink
test: move test_rtcp_decode_badmsg() to separate testcase
Browse files Browse the repository at this point in the history
  • Loading branch information
alfredh committed Jan 4, 2024
1 parent a3991df commit cdffbd0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
6 changes: 1 addition & 5 deletions test/rtp.c
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ static const uint8_t rtcp_sdes[] =
"";


static int test_rtcp_decode_badmsg(void)
int test_rtcp_decode_badmsg(void)
{
struct rtcp_msg *msg = NULL;
uint32_t ssrc = 0xcafebabe;
Expand Down Expand Up @@ -413,10 +413,6 @@ int test_rtcp_decode(void)
if (err)
goto out;

err = test_rtcp_decode_badmsg();
if (err)
return err;

out:
mem_deref(msg);
mem_deref(mb);
Expand Down
1 change: 1 addition & 0 deletions test/test.c
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ static const struct test tests[] = {
TEST(test_rtcp_encode),
TEST(test_rtcp_encode_afb),
TEST(test_rtcp_decode),
TEST(test_rtcp_decode_badmsg),
TEST(test_rtcp_packetloss),
TEST(test_rtcp_twcc),
TEST(test_sa_class),
Expand Down
1 change: 1 addition & 0 deletions test/test.h
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,7 @@ int test_rtpext(void);
int test_rtcp_encode(void);
int test_rtcp_encode_afb(void);
int test_rtcp_decode(void);
int test_rtcp_decode_badmsg(void);
int test_rtcp_packetloss(void);
int test_rtcp_twcc(void);
int test_sa_class(void);
Expand Down

0 comments on commit cdffbd0

Please sign in to comment.