[ITC][device][Non-ACR][TFDF-3083, Device failed on testhub. Fixed the issue due to... 41/212341/3
authorPriya Kohli <priya.kohli@samsung.com>
Tue, 20 Aug 2019 09:29:08 +0000 (14:59 +0530)
committershobhit verma <shobhit.v@samsung.com>
Tue, 20 Aug 2019 11:24:10 +0000 (11:24 +0000)
Change-Id: Ibf12543b45a81c9627cc89e8735c33c2ae336de0
Signed-off-by: Priya Kohli <priya.kohli@samsung.com>
src/itc/device/ITs-device.c

index aa4fde45a9449279372e65a63fbd3b994f336fc5..de888288eace28beac84293e2e2b8be29566c21d 100755 (executable)
@@ -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 )
                {