mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-23 06:08:07 +00:00
Better use 2 lines instead of doing code within CU macros
This commit is contained in:
parent
1f0d74ce26
commit
fd86ba4138
2 changed files with 4 additions and 2 deletions
|
|
@ -3509,7 +3509,8 @@ static void call_with_generic_cn(void) {
|
|||
wait_for_until(marie->lc, pauline->lc, NULL, 0, 8000);
|
||||
rtps=rtp_session_get_stats(pauline_call->audiostream->ms.sessions.rtp_session);
|
||||
CU_ASSERT_TRUE(rtps->packet_recv<=300 && rtps->packet_recv>=200);
|
||||
CU_ASSERT_EQUAL((err=stat(recorded_file,&stbuf)), 0);
|
||||
err=stat(recorded_file,&stbuf);
|
||||
CU_ASSERT_EQUAL(err, 0);
|
||||
if (err==0){
|
||||
CU_ASSERT_TRUE(stbuf.st_size>120000);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -57,7 +57,8 @@ static void play_file(const char *filename, bool_t unsupported_format, const cha
|
|||
}
|
||||
if(res == -1) goto fail;
|
||||
|
||||
CU_ASSERT_EQUAL((res = linphone_player_start(player)), 0);
|
||||
res = linphone_player_start(player);
|
||||
CU_ASSERT_EQUAL(res, 0);
|
||||
if(res == -1) goto fail;
|
||||
|
||||
CU_ASSERT_TRUE(wait_for_eof(&eof, &time, 100, 13000));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue