From ae96eee82bdf3e32cdd003fdf19b8c7c35a956b1 Mon Sep 17 00:00:00 2001 From: bohu Date: Fri, 23 Jun 2017 12:31:42 -0700 Subject: [PATCH] vts: fix TryDifferentGovernors in Power hal test The test should return when it cannot open cpu governor files BUG: 62138092 Test: build sdk_gphone_x86-userdebug, launch emulator, run test: run vts -m VtsHalPowerV1_0Target The test should all pass. Change-Id: I3b47261e9525b6a04e995dac1ad63d9cc088b004 --- power/1.0/vts/functional/VtsHalPowerV1_0TargetTest.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/power/1.0/vts/functional/VtsHalPowerV1_0TargetTest.cpp b/power/1.0/vts/functional/VtsHalPowerV1_0TargetTest.cpp index c94fa4f461..da49dfcf32 100644 --- a/power/1.0/vts/functional/VtsHalPowerV1_0TargetTest.cpp +++ b/power/1.0/vts/functional/VtsHalPowerV1_0TargetTest.cpp @@ -77,6 +77,7 @@ TEST_F(PowerHidlTest, TryDifferentGovernors) { if (fd1 < 0 || fd2 < 0) { // Files don't exist, so skip the rest of the test case SUCCEED(); + return; } char old_governor[80];