test/power: fix ACPI cpufreq module miss fallback
authorPallantla Poornima <pallantlax.poornima@intel.com>
Tue, 13 Nov 2018 13:58:20 +0000 (13:58 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 14 Nov 2018 03:51:34 +0000 (04:51 +0100)
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 <pallantlax.poornima@intel.com>
Acked-by: Reshma Pattan <reshma.pattan@intel.com>
test/test/test_power_acpi_cpufreq.c

index 22e541d..6d637cc 100644 (file)
@@ -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;
        }
 
        /**