commit | ae96eee82bdf3e32cdd003fdf19b8c7c35a956b1 | [log] [tgz] |
---|---|---|
author | bohu <bohu@google.com> | Fri Jun 23 12:31:42 2017 -0700 |
committer | Bo Hu <bohu@google.com> | Fri Jun 23 19:39:43 2017 +0000 |
tree | d80c41259e7d9651bb4b3dd964e23075c5d32522 | |
parent | eed6653f2a0799d0236d3e8bfc9adeea5d5eb9b4 [diff] |
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
diff --git a/power/1.0/vts/functional/VtsHalPowerV1_0TargetTest.cpp b/power/1.0/vts/functional/VtsHalPowerV1_0TargetTest.cpp index c94fa4f..da49dfc 100644 --- a/power/1.0/vts/functional/VtsHalPowerV1_0TargetTest.cpp +++ b/power/1.0/vts/functional/VtsHalPowerV1_0TargetTest.cpp
@@ -77,6 +77,7 @@ if (fd1 < 0 || fd2 < 0) { // Files don't exist, so skip the rest of the test case SUCCEED(); + return; } char old_governor[80];