OSDN Git Service

Assert getService does not return nullptr
authorJae Shin <jaeshin@google.com>
Thu, 29 Jun 2017 02:42:25 +0000 (11:42 +0900)
committerJae Shin <jaeshin@google.com>
Fri, 30 Jun 2017 04:11:23 +0000 (13:11 +0900)
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

configstore/1.0/vts/functional/VtsHalConfigstoreV1_0TargetTest.cpp

index 95cd30b..e501580 100644 (file)
@@ -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 {}