diff options
Diffstat (limited to 'graphics/composer/2.2/vts/functional/VtsHalGraphicsComposerV2_2TargetTest.cpp')
| -rw-r--r-- | graphics/composer/2.2/vts/functional/VtsHalGraphicsComposerV2_2TargetTest.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/graphics/composer/2.2/vts/functional/VtsHalGraphicsComposerV2_2TargetTest.cpp b/graphics/composer/2.2/vts/functional/VtsHalGraphicsComposerV2_2TargetTest.cpp index 95a0f69c3..f4c0382df 100644 --- a/graphics/composer/2.2/vts/functional/VtsHalGraphicsComposerV2_2TargetTest.cpp +++ b/graphics/composer/2.2/vts/functional/VtsHalGraphicsComposerV2_2TargetTest.cpp @@ -17,6 +17,7 @@ #define LOG_TAG "graphics_composer_hidl_hal_test@2.2" #include <android-base/logging.h> +#include <android-base/properties.h> #include <android/hardware/graphics/mapper/2.0/IMapper.h> #include <composer-vts/2.1/GraphicsComposerCallback.h> #include <composer-vts/2.1/TestCommandReader.h> @@ -698,3 +699,15 @@ INSTANTIATE_TEST_SUITE_P( } // namespace graphics } // namespace hardware } // namespace android + +int main(int argc, char** argv) { + ::testing::InitGoogleTest(&argc, argv); + + using namespace std::chrono_literals; + if (!android::base::WaitForProperty("init.svc.surfaceflinger", "stopped", 10s)) { + ALOGE("Failed to stop init.svc.surfaceflinger"); + return -1; + } + + return RUN_ALL_TESTS(); +}
\ No newline at end of file |
