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
This commit is contained in:
bohu
2017-06-23 12:31:42 -07:00
committed by Bo Hu
parent eed6653f2a
commit ae96eee82b

View File

@@ -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];