mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 16:50:18 +00:00
Merge "gralloc4-vts: don't wait on invalid sync fence" into rvc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
a66c632f8f
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user