commit | 60ff24c62e3215d24cdad0b7b29926734eb24c10 | [log] [tgz] |
---|---|---|
author | Jae Shin <jaeshin@google.com> | Thu Jun 29 11:42:25 2017 +0900 |
committer | Jae Shin <jaeshin@google.com> | Thu Jun 29 11:59:11 2017 +0900 |
tree | 215c9c091aa075d37a3488e6bfeac55c91d4a53b | |
parent | 1d3cbd6e819f03e74ca30eb02b9f574c5d6d1f6f [diff] |
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 Change-Id: I432e07c0c61a308b814d88cab9027a95ff24d8b5
diff --git a/configstore/1.0/vts/functional/VtsHalConfigstoreV1_0TargetTest.cpp b/configstore/1.0/vts/functional/VtsHalConfigstoreV1_0TargetTest.cpp index 95cd30b..e501580 100644 --- a/configstore/1.0/vts/functional/VtsHalConfigstoreV1_0TargetTest.cpp +++ b/configstore/1.0/vts/functional/VtsHalConfigstoreV1_0TargetTest.cpp
@@ -41,6 +41,7 @@ virtual void SetUp() override { sfConfigs = ::testing::VtsHalHidlTargetTestBase::getService< ISurfaceFlingerConfigs>(); + ASSERT_NE(sfConfigs, nullptr); } virtual void TearDown() override {}