From c8ca91ec23a7aae8a393f3a94a1c42e74f06a599 Mon Sep 17 00:00:00 2001 From: Gautier Pelloux-Prayer Date: Mon, 18 May 2015 15:19:01 +0200 Subject: [PATCH] tester: fix some tests --- tester/call_tester.c | 4 ++-- tester/multicast_call_tester.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tester/call_tester.c b/tester/call_tester.c index 77eb6deda..e3ddacfc0 100644 --- a/tester/call_tester.c +++ b/tester/call_tester.c @@ -4107,8 +4107,8 @@ static void simple_stereo_call(const char *codec_name, int clock_rate, int bitra double similar; const double threshold = .7f; BC_ASSERT_EQUAL(ms_audio_diff(stereo_file,recordpath,&similar,audio_cmp_max_shift,NULL,NULL), 0, int, "%d"); - BC_ASSERT_GREATER(100*similar, threshold, float, "%f"); - BC_ASSERT_LOWER(100*similar, 1.f, float, "%f"); + BC_ASSERT_GREATER(similar, threshold, float, "%f"); + BC_ASSERT_LOWER(similar, 1.f, float, "%f"); #endif } diff --git a/tester/multicast_call_tester.c b/tester/multicast_call_tester.c index 692f4d995..3453463a0 100644 --- a/tester/multicast_call_tester.c +++ b/tester/multicast_call_tester.c @@ -55,7 +55,7 @@ static void call_multicast_base(bool_t video) { BC_ASSERT_TRUE(call(pauline,marie)); wait_for_until(marie->lc, pauline->lc, NULL, 1, 3000); if (linphone_core_get_current_call(marie->lc)) { - BC_ASSERT_TRUE(linphone_call_get_audio_stats(linphone_core_get_current_call(marie->lc))->download_bandwidth>70); + BC_ASSERT_GREATER(linphone_call_get_audio_stats(linphone_core_get_current_call(marie->lc))->download_bandwidth,70,int,"%d"); if (video) { /*check video path*/ linphone_call_set_next_video_frame_decoded_callback(linphone_core_get_current_call(marie->lc),linphone_call_cb,marie->lc);