delete case: testDisplayBufferFreeMem001

Signed-off-by: wangchao582 <wangchao582@huawei.com>
This commit is contained in:
wangchao582 2024-03-25 15:28:49 +08:00
parent 675bd626b3
commit 7fa146eeee

View File

@ -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