【模块名_概率】简要描述:L1 3516DV300单板liteos版本调用AllocMem接口测试,单板挂死
【环境信息】:L1 3516DV300单板liteos版本:OpenHarmony 3.0.0.6
【预置条件】:加载OpenHarmony 3.0.0.6 liteos版本
【测试步骤】:调用测试bin,运行测试用例
HWTEST_F(HdiDisplayTest, SUB_DriverSystem_HdiDisplay_0290, Function | MediumTest | Level1)
{
int ret;
(void)memset_s(&g_buffer, sizeof(BufferHandle), 0, sizeof(BufferHandle));
AllocInfo info = {
.width = SAMPLE_RECT_WIDTH,
.height = SAMPLE_RECT_HEIGHT,
.format = PIXEL_FMT_RGBA_8888,
.usage = HBM_USE_MEM_MMZ_CACHE
};
if (g_displayTest.grallocFuncs->AllocMem == NULL) {
HDF_LOGE("grallocFuncs.AllocMem is NULL");
}
ret = g_displayTest.grallocFuncs->AllocMem(&info, &g_buffer);
EXPECT_EQ(DISPLAY_SUCCESS, ret);
if (g_displayTest.grallocFuncs->FreeMem != NULL) {
g_displayTest.grallocFuncs->FreeMem(g_buffer);
}
}
【预期结果】:用例pass
【实际结果】:单板挂死
OHOS # ./HdfDisplayTest.bin --gtest_filter=HdiDisplayTest.SUB_DriverSystem_HdiDisplay_0290
OHOS # Running main() from ../../../third_party/googletest/googletest/src/gtest_main.cc
Note: Google Test filter = HdiDisplayTest.SUB_DriverSystem_HdiDisplay_0290
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from HdiDisplayTest
01-01 00:04:56.349 16 49 I 02500/HDF_DISP: LayerInitialize: layer initialize success
01-01 00:04:56.349 16 49 I 02500/HDF_DISP: GrallocInitialize: gralloc initialize success
01-01 00:04:56.349 16 49 I 02500/HDF_DISP: GfxInitialize: gfx initialize success
[ RUN ] HdiDisplayTest.SUB_DriverSystem_HdiDisplay_0290
[ERR]OsVmPageFaultHandler 347
##################excFrom: kernel!###################
cpu0 is in exc.
cpu1 is halted.
The current handling the exception is cpu0 !
data_abort fsr:0x5, far:0x000002a2
Abort caused by a read instruction. Translation fault, section
excType: data abort
processName = HdfDisplayTest.bin
processID = 16
process aspace = 0x01000000 -> 0x3f000000
taskName = HdfDisplayTest.bin
taskID = 49
task user stack = 0x3ea80000 -> 0x3eb80000
pc = 0x401ac3f8
【恢复手段】:单板下电、上电
【出现概率】:必现
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
登录 后才可以发表评论