[LTP] power_management: rewrite runpwtests04.sh in C
linuxtestproject.agent@gmail.com
linuxtestproject.agent@gmail.com
Sun May 17 19:13:04 CEST 2026
Hi Jinseok,
On Sun, 17 May 2026 05:00:12 +0900, Jinseok Kim wrote:
> power_management: rewrite runpwtests04.sh in C
>
> Convert the cpuidle sysfs smoke test from shell to C using the modern
> LTP test API.
>
> The new implementation preserves the original test semantics
> while removing shell dependencies.
The commit body needs a sentence on *why* the conversion is being done
now — what problem or goal motivates it (e.g. old API retirement, CI
coverage gap, etc.).
[...]
> +static void setup(void)
> +{
> + if (access(CPUIDLE_PATH, R_OK))
> + tst_brk(TCONF, "%s is not available", CPUIDLE_PATH);
> +}
The runtest file was not updated. `runpwtests04 runpwtests04.sh` in
runtest/power_management_tests still points to the deleted shell script.
Replace it with `cpuidle01 cpuidle01`.
---
Note:
Our agent completed the review of the patch. The full review can be
found at: https://github.com/linux-test-project/ltp-agent/actions/runs/25997280181
The agent can sometimes produce false positives although often its
findings are genuine. If you find issues with the review, please
comment this email or ignore the suggestions.
Regards,
LTP AI Reviewer
More information about the ltp
mailing list