Merge "gralloc4-vts: don't wait on invalid sync fence" into rvc-dev

This commit is contained in:
Marissa Ikonomidis 2020-02-26 18:05:47 +00:00 committed by Android (Google) Code Review
commit a66c632f8f

View file

@ -727,8 +727,10 @@ TEST_P(GraphicsMapperHidlTest, FlushRereadBasic) {
int fence; int fence;
ASSERT_NO_FATAL_FAILURE(fence = mGralloc->flushLockedBuffer(writeBufferHandle)); ASSERT_NO_FATAL_FAILURE(fence = mGralloc->flushLockedBuffer(writeBufferHandle));
ASSERT_EQ(0, sync_wait(fence, 3500)); if (fence >= 0) {
close(fence); ASSERT_EQ(0, sync_wait(fence, 3500));
close(fence);
}
ASSERT_NO_FATAL_FAILURE(mGralloc->rereadLockedBuffer(readBufferHandle)); ASSERT_NO_FATAL_FAILURE(mGralloc->rereadLockedBuffer(readBufferHandle));