If the power subsystem cannot be initialized e.g. due to not being root, skip the capabilities test, rather than failing it.
Signed-off-by: Bruce Richardson <[email protected]> --- app/test/test_power_cpufreq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/test/test_power_cpufreq.c b/app/test/test_power_cpufreq.c index 96de255f27..1d37b18fed 100644 --- a/app/test/test_power_cpufreq.c +++ b/app/test/test_power_cpufreq.c @@ -661,7 +661,7 @@ test_power_caps(void) "correctly(APCI cpufreq) or operating in another valid " "Power management environment\n", TEST_POWER_LCORE_ID); rte_power_unset_env(); - return -1; + return TEST_SKIPPED; } ret = rte_power_get_capabilities(TEST_POWER_LCORE_ID, &caps); -- 2.51.0

