mirror of
https://gitee.com/openharmony/xts_hats
synced 2024-11-27 09:00:57 +00:00
delete case: testDisplayBufferFreeMem001
Signed-off-by: wangchao582 <wangchao582@huawei.com>
This commit is contained in:
parent
675bd626b3
commit
7fa146eeee
@ -3642,30 +3642,6 @@ HWTEST_F(DisplayBufferMtAdditional, testDisplayBufferInvalidateCache020, Functio
|
||||
AfterCache(bHandle);
|
||||
}
|
||||
|
||||
/**
|
||||
* @tc.number : SUB_Driver_Display_Buffer_FreeMem_0100
|
||||
* @tc.name : testDisplayBufferFreeMem001
|
||||
* @tc.desc : Reliability of function(FreeMem)
|
||||
*/
|
||||
HWTEST_F(DisplayBufferMtAdditional, testDisplayBufferFreeMem001, Function | MediumTest | Level1)
|
||||
{
|
||||
BufferHandle *bHandle = nullptr;
|
||||
AllocInfo info;
|
||||
info.width = 1024;
|
||||
info.height = 1024;
|
||||
info.usage = OHOS::HDI::Display::Composer::V1_0::HBM_USE_CPU_WRITE;
|
||||
info.format = PIXEL_FMT_BGRA_8888;
|
||||
|
||||
g_dispbuf->AllocMem(info, bHandle);
|
||||
g_dispbuf->FreeMem(*bHandle);
|
||||
void *buffer = g_dispbuf->Mmap(*bHandle);
|
||||
#ifdef DISPLAY_COMMUNITY
|
||||
EXPECT_TRUE(buffer == reinterpret_cast<void *>(0xffffffff));
|
||||
#else
|
||||
EXPECT_TRUE(buffer == nullptr);
|
||||
#endif // DISPLAY_COMMUNITY
|
||||
}
|
||||
|
||||
} // namespace TEST
|
||||
} // namespace Display
|
||||
} // namespace HDI
|
||||
|
Loading…
Reference in New Issue
Block a user