From: Priya Kohli Date: Tue, 20 Aug 2019 09:29:08 +0000 (+0530) Subject: [ITC][device][Non-ACR][TFDF-3083, Device failed on testhub. Fixed the issue due to... X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8ce161f430c347bdc8c945692ce89e4fb1a1541f;p=test%2Ftct%2Fnative%2Fapi.git [ITC][device][Non-ACR][TFDF-3083, Device failed on testhub. Fixed the issue due to ACR-1426 on RPI3_HEADLESS] Change-Id: Ibf12543b45a81c9627cc89e8735c33c2ae336de0 Signed-off-by: Priya Kohli --- diff --git a/src/itc/device/ITs-device.c b/src/itc/device/ITs-device.c index aa4fde45a..de888288e 100755 --- a/src/itc/device/ITs-device.c +++ b/src/itc/device/ITs-device.c @@ -185,10 +185,10 @@ int ITc_device_add_remove_callback_p(void) // Target API int nRet = device_add_callback(callback_type[enum_counter], DeviceChangedCallback, NULL); - if (false == bIsDisplayFeatureSupported) + if (callback_type[enum_counter] == DEVICE_CALLBACK_DISPLAY_STATE && false == bIsDisplayFeatureSupported) { PRINT_RESULT(DEVICE_ERROR_NOT_SUPPORTED, nRet, "device_add_callback", DeviceGetError(nRet)); - return 0; + continue; } if ( nRet != DEVICE_ERROR_NONE ) { @@ -257,10 +257,10 @@ int ITc_device_add_remove_callback_p(void) // Target API nRet = device_remove_callback(callback_type[enum_counter], DeviceChangedCallback); - if (false == bIsDisplayFeatureSupported) + if (callback_type[enum_counter] == DEVICE_CALLBACK_DISPLAY_STATE && false == bIsDisplayFeatureSupported) { PRINT_RESULT(DEVICE_ERROR_NOT_SUPPORTED, nRet, "device_remove_callback", DeviceGetError(nRet)); - return 0; + continue; } if ( nRet != DEVICE_ERROR_NONE ) {