summaryrefslogtreecommitdiffstats
path: root/configstore/1.0/vts/functional
diff options
context:
space:
mode:
authorJae Shin <jaeshin@google.com>2017-06-29 11:42:25 +0900
committerJae Shin <jaeshin@google.com>2017-06-30 13:11:23 +0900
commit97478a5ca0b7c4c566215189478314860c0845c3 (patch)
treed2fa7776c628f7b61d6cf3e8364f65041051da32 /configstore/1.0/vts/functional
parentcb4ac8559d11d772fc03ba9492c5934f4b3253aa (diff)
downloadandroid_hardware_interfaces-97478a5ca0b7c4c566215189478314860c0845c3.tar.gz
android_hardware_interfaces-97478a5ca0b7c4c566215189478314860c0845c3.tar.bz2
android_hardware_interfaces-97478a5ca0b7c4c566215189478314860c0845c3.zip
Assert getService does not return nullptr
Make sure getService return value is not null before running testcase Test: make vts -j40 && vts-tradefed run commandAndExit vts -m VtsHalConfigstoreV1_0Target Bug:62931371 Merged-In: I432e07c0c61a308b814d88cab9027a95ff24d8b5 (cherry picked from commit 60ff24c62e3215d24cdad0b7b29926734eb24c10) Change-Id: Id9bb2a3fb2c4caf02c7e03c1529cefe2570c5453
Diffstat (limited to 'configstore/1.0/vts/functional')
-rw-r--r--configstore/1.0/vts/functional/VtsHalConfigstoreV1_0TargetTest.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/configstore/1.0/vts/functional/VtsHalConfigstoreV1_0TargetTest.cpp b/configstore/1.0/vts/functional/VtsHalConfigstoreV1_0TargetTest.cpp
index 95cd30b81..e50158093 100644
--- a/configstore/1.0/vts/functional/VtsHalConfigstoreV1_0TargetTest.cpp
+++ b/configstore/1.0/vts/functional/VtsHalConfigstoreV1_0TargetTest.cpp
@@ -41,6 +41,7 @@ class ConfigstoreHidlTest : public ::testing::VtsHalHidlTargetTestBase {
virtual void SetUp() override {
sfConfigs = ::testing::VtsHalHidlTargetTestBase::getService<
ISurfaceFlingerConfigs>();
+ ASSERT_NE(sfConfigs, nullptr);
}
virtual void TearDown() override {}