OSDN Git Service

Fix bugs in power HAL VTS test
authorConnor O'Brien <connoro@google.com>
Fri, 24 Feb 2017 20:49:44 +0000 (12:49 -0800)
committerConnor O'Brien <connoro@google.com>
Mon, 27 Feb 2017 19:22:06 +0000 (11:22 -0800)
commit990ec56cdb8ce00489c7994c16e839e8060e1e0e
treea48ee0ae0d791d76471962af3517ca69f0b93aab
parent33df4dbeb37a37c6d3c0320083cece0631fbe140
Fix bugs in power HAL VTS test

Ensure CPU governor list is null-terminated; stop treating newline
char as a governor name; stop leaking file descriptors on failure.

Bug: 35753237
Test: Test runs and passes on marlin and bullhead
Change-Id: I8a6409a50e5daac36770dc577d0628fec8148847
Signed-off-by: Connor O'Brien <connoro@google.com>
power/1.0/vts/functional/VtsHalPowerV1_0TargetTest.cpp