diff options
Diffstat (limited to 'graphics/composer/2.1/vts/functional/VtsHalGraphicsComposerV2_1TargetTest.cpp')
| -rw-r--r-- | graphics/composer/2.1/vts/functional/VtsHalGraphicsComposerV2_1TargetTest.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/graphics/composer/2.1/vts/functional/VtsHalGraphicsComposerV2_1TargetTest.cpp b/graphics/composer/2.1/vts/functional/VtsHalGraphicsComposerV2_1TargetTest.cpp index b92279d45..2604be6d4 100644 --- a/graphics/composer/2.1/vts/functional/VtsHalGraphicsComposerV2_1TargetTest.cpp +++ b/graphics/composer/2.1/vts/functional/VtsHalGraphicsComposerV2_1TargetTest.cpp @@ -17,6 +17,7 @@ #define LOG_TAG "graphics_composer_hidl_hal_test" #include <android-base/logging.h> +#include <android-base/properties.h> #include <composer-vts/2.1/ComposerVts.h> #include <composer-vts/2.1/GraphicsComposerCallback.h> #include <composer-vts/2.1/TestCommandReader.h> @@ -1100,3 +1101,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(); +} |
