Better use 2 lines instead of doing code within CU macros

parent 1f0d74ce
......@@ -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));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment