From: DoHyun Pyun Date: Thu, 20 Feb 2020 06:43:20 +0000 (+0900) Subject: Fix a bug in AVC unit test X-Git-Tag: submit/tizen/20200224.010814^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a409f8bb59bb519a192145e2681828ffb9fa5974;p=platform%2Fcore%2Fapi%2Fbluetooth.git Fix a bug in AVC unit test Change-Id: If3c4baf10e2b0b7a2099165398e58914beb1741c Signed-off-by: DoHyun Pyun --- diff --git a/test/bt_unit_test.c b/test/bt_unit_test.c index bf07f8a..411c5c9 100644 --- a/test/bt_unit_test.c +++ b/test/bt_unit_test.c @@ -6212,8 +6212,9 @@ int test_input_callback(void *data) ret = bt_audio_set_absolute_volume(absolute_volume); TC_PRT("ret = %d", ret); - if (ret != BT_ERROR_NONE) - absolute_volume = absolute_volume + 10; + if (ret == BT_ERROR_NONE) + absolute_volume = absolute_volume + 50; + break; } case BT_UNIT_TEST_FUNCTION_AUDIO_GET_ABSOLUTE_VOLUME: { @@ -6221,7 +6222,7 @@ int test_input_callback(void *data) ret = bt_audio_get_absolute_volume(&volume); TC_PRT("ret = %d, volume: %d", ret, volume); - if (ret != BT_ERROR_NONE) + if (ret == BT_ERROR_NONE) absolute_volume = volume; break;