Merge "gralloc4-vts: don't wait on invalid sync fence" into rvc-dev
This commit is contained in:
commit
a66c632f8f
1 changed files with 4 additions and 2 deletions
|
@ -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));
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue