From 7fa146eeeee9a5a48f55167bfea51f881d092433 Mon Sep 17 00:00:00 2001 From: wangchao582 Date: Mon, 25 Mar 2024 15:28:49 +0800 Subject: [PATCH] =?UTF-8?q?delete=20case=EF=BC=9A=20testDisplayBufferFreeM?= =?UTF-8?q?em001?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: wangchao582 --- .../display_buffer_mt.cpp | 24 ------------------- 1 file changed, 24 deletions(-) diff --git a/hdf/display/buffer/moduletest_additional/display_buffer_mt.cpp b/hdf/display/buffer/moduletest_additional/display_buffer_mt.cpp index 2255c078..5e33ed2c 100644 --- a/hdf/display/buffer/moduletest_additional/display_buffer_mt.cpp +++ b/hdf/display/buffer/moduletest_additional/display_buffer_mt.cpp @@ -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(0xffffffff)); -#else - EXPECT_TRUE(buffer == nullptr); -#endif // DISPLAY_COMMUNITY -} - } // namespace TEST } // namespace Display } // namespace HDI