From 75ee240b2aab58a7f6c8ef903d73a10b63348099 Mon Sep 17 00:00:00 2001 From: Pallantla Poornima Date: Tue, 13 Nov 2018 13:58:20 +0000 Subject: [PATCH] test/power: fix ACPI cpufreq module miss fallback Power_acpi_cpufreq_autotest should not be run on VM and platforms which dont have acpi_cpufreq module loaded. Hence changed return as TEST_SKIPPED Fixes: 0ea2dd4409 ("test: skip when required lib not available") Cc: stable@dpdk.org Signed-off-by: Pallantla Poornima Acked-by: Reshma Pattan --- test/test/test_power_acpi_cpufreq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test/test_power_acpi_cpufreq.c b/test/test/test_power_acpi_cpufreq.c index 22e541d65c..6d637cc77a 100644 --- a/test/test/test_power_acpi_cpufreq.c +++ b/test/test/test_power_acpi_cpufreq.c @@ -441,7 +441,7 @@ test_power_acpi_cpufreq(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; } /** -- 2.20.1