Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ae96eee8 authored by bohu's avatar bohu Committed by Bo Hu
Browse files

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
parent eed6653f
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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];