commit | 1fd78abb44442d04bd554763ea1cb0ed26a58a0d | [log] [tgz] |
---|---|---|
author | Kevin Rocard <krocard@google.com> | Thu Jun 28 20:03:20 2018 -0700 |
committer | android-build-merger <android-build-merger@google.com> | Thu Jun 28 20:03:20 2018 -0700 |
tree | 05e4aa2c7fe64ff04ba7abef17a555656629e335 | |
parent | 8714335f4abdb98cb3941f5187bbc92e2e594201 [diff] | |
parent | 72641e7ad014a011562c3fd16444b919d32aeb63 [diff] |
Audio VTS was testing wrong uninitialized variable due to typo am: 72641e7ad0 Change-Id: I590efc99f853e1db7fa0747f9c91946913bb3679
diff --git a/audio/core/4.0/vts/functional/AudioPrimaryHidlHalTest.cpp b/audio/core/4.0/vts/functional/AudioPrimaryHidlHalTest.cpp index c3cb022..9c9b749 100644 --- a/audio/core/4.0/vts/functional/AudioPrimaryHidlHalTest.cpp +++ b/audio/core/4.0/vts/functional/AudioPrimaryHidlHalTest.cpp
@@ -558,11 +558,11 @@ address.device = deviceType; auto ret = device->setConnectedState(address, state); ASSERT_TRUE(ret.isOk()); - if (res == Result::NOT_SUPPORTED) { + if (ret == Result::NOT_SUPPORTED) { doc::partialTest("setConnectedState is not supported"); return; } - ASSERT_OK(res); + ASSERT_OK(ret); } } }