commit | 94f4b20dcf9d0d8d382c3aeac736a0236d7e2b21 | [log] [tgz] |
---|---|---|
author | Leon Scroggins III <scroggo@google.com> | Tue Jan 09 11:43:45 2024 -0500 |
committer | Leon Scroggins III <scroggo@google.com> | Tue Jan 09 12:39:11 2024 -0500 |
tree | c2866512ccc80cdcded45d5cf85c64c9e5df0ff5 | |
parent | f162180e87dfba15ae26f95eda8c6f0ed9ef6aa7 [diff] [blame] |
Avoid crashing when failing graphics VTS When the tests fail, ensure we continue running so we can run the remainder of the tests. Bug: 304976052 Test: atest GraphicsComposerAidlCommandTest Change-Id: Ia6ab2bbd284bb7eddeb49164dcbe7285829ad9c3
diff --git a/graphics/composer/aidl/vts/VtsHalGraphicsComposer3_ReadbackTest.cpp b/graphics/composer/aidl/vts/VtsHalGraphicsComposer3_ReadbackTest.cpp index 164e6d5..3f82925 100644 --- a/graphics/composer/aidl/vts/VtsHalGraphicsComposer3_ReadbackTest.cpp +++ b/graphics/composer/aidl/vts/VtsHalGraphicsComposer3_ReadbackTest.cpp
@@ -85,6 +85,7 @@ } void TearDown() override { + ASSERT_FALSE(mDisplays.empty()); ASSERT_TRUE(mComposerClient->setPowerMode(getPrimaryDisplayId(), PowerMode::OFF).isOk()); ASSERT_TRUE(mComposerClient->tearDown(mWriter.get())); mComposerClient.reset();