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;
ASSERT_NO_FATAL_FAILURE(fence = mGralloc->flushLockedBuffer(writeBufferHandle));
ASSERT_EQ(0, sync_wait(fence, 3500));
close(fence);
if (fence >= 0) {
ASSERT_EQ(0, sync_wait(fence, 3500));
close(fence);
}
ASSERT_NO_FATAL_FAILURE(mGralloc->rereadLockedBuffer(readBufferHandle));