From: Jae Shin Date: Thu, 29 Jun 2017 02:42:25 +0000 (+0900) Subject: Assert getService does not return nullptr X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=97478a5ca0b7c4c566215189478314860c0845c3;p=android-x86%2Fhardware-interfaces.git 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 --- diff --git a/configstore/1.0/vts/functional/VtsHalConfigstoreV1_0TargetTest.cpp b/configstore/1.0/vts/functional/VtsHalConfigstoreV1_0TargetTest.cpp index 95cd30b8..e5015809 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 {}