From: Youngjae Cho Date: Thu, 23 Jan 2025 07:58:33 +0000 (+0900) Subject: [ITC][capi-system-device][Non-ACR] Fix return type of power lock/unlock by feature X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F51%2F318751%2F4;p=test%2Ftct%2Fnative%2Fapi.git [ITC][capi-system-device][Non-ACR] Fix return type of power lock/unlock by feature Take an additional feature, http://tizen.org/feature/display.state, into account as well as http://tizen.org/feature/display. Change-Id: Ie06d1279aa5029c18666a1dbae871daa244b6960 Signed-off-by: Youngjae Cho --- diff --git a/src/itc/device/ITs-device_power.c b/src/itc/device/ITs-device_power.c index 0825b3cf8..b178ec1d8 100644 --- a/src/itc/device/ITs-device_power.c +++ b/src/itc/device/ITs-device_power.c @@ -91,33 +91,34 @@ int ITc_device_power_request_release_lock_p(void) { START_TEST; - struct expect_return_by_profile { + struct expect_return_by_feature { power_lock_e lock_type; - int headed; - int headless; + int headed_and_stateful; + int headless_or_stateless; } expect_return[] = { { .lock_type = POWER_LOCK_CPU, - .headed = DEVICE_ERROR_NONE, - .headless = DEVICE_ERROR_NONE, + .headed_and_stateful = DEVICE_ERROR_NONE, + .headless_or_stateless = DEVICE_ERROR_NONE, }, { .lock_type = POWER_LOCK_DISPLAY, - .headed = DEVICE_ERROR_NONE, - .headless = DEVICE_ERROR_NOT_SUPPORTED, + .headed_and_stateful = DEVICE_ERROR_NONE, + .headless_or_stateless = DEVICE_ERROR_NOT_SUPPORTED, }, { .lock_type = POWER_LOCK_DISPLAY_DIM, - .headed = DEVICE_ERROR_NONE, - .headless = DEVICE_ERROR_NOT_SUPPORTED, + .headed_and_stateful = DEVICE_ERROR_NONE, + .headless_or_stateless = DEVICE_ERROR_NOT_SUPPORTED, }, }; int enum_size = sizeof(expect_return) / sizeof(expect_return[0]); int enum_counter = 0; + bool feature = (bIsDisplayFeatureSupported && bIsDisplayStateFeatureSupported); for ( enum_counter=0; enum_counter