From: SooChan Lim Date: Tue, 20 Mar 2018 03:55:15 +0000 (+0900) Subject: utest: do not check the validation of some backend symbols X-Git-Tag: accepted/tizen/unified/20180320.141319~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ccd8d3b18c9708a9621d778daa135028f639fde6;p=platform%2Fcore%2Fuifw%2Flibtbm.git utest: do not check the validation of some backend symbols Change-Id: I349ded39d3c986606dd618282b31ce5ecd58262d --- diff --git a/utests/ut_tbm_backend.cpp b/utests/ut_tbm_backend.cpp index ac24a89..bc8283b 100644 --- a/utests/ut_tbm_backend.cpp +++ b/utests/ut_tbm_backend.cpp @@ -76,7 +76,8 @@ TEST_F(TBMBackend, BufmgrCheckSymbols) EXPECT_TRUE(bufmgr->bufmgr_func->bufmgr_get_supported_formats); EXPECT_TRUE(bufmgr->bufmgr_func->bufmgr_get_plane_data); EXPECT_TRUE(bufmgr->bufmgr_func->bufmgr_alloc_bo); - EXPECT_TRUE(bufmgr->bufmgr_func->bufmgr_alloc_bo_with_format); + if (!bufmgr->bufmgr_func->bufmgr_alloc_bo_with_format) + printf("No bufmgr->bufmgr_func->bufmgr_alloc_bo_with_format symbole.\n"); EXPECT_TRUE(bufmgr->bufmgr_func->bufmgr_import_fd); EXPECT_TRUE(bufmgr->bufmgr_func->bufmgr_import_key); @@ -86,8 +87,10 @@ TEST_F(TBMBackend, BufmgrCheckSymbols) EXPECT_TRUE(bufmgr->bo_func->bo_get_handle); EXPECT_TRUE(bufmgr->bo_func->bo_map); EXPECT_TRUE(bufmgr->bo_func->bo_unmap); - EXPECT_TRUE(bufmgr->bo_func->bo_lock); - EXPECT_TRUE(bufmgr->bo_func->bo_unlock); + if (!bufmgr->bo_func->bo_lock) + printf("No bufmgr->bo_func->bo_lock symbole.\n"); + if (!bufmgr->bo_func->bo_unlock) + printf("No bufmgr->bo_func->bo_unlock symbole.\n"); EXPECT_TRUE(bufmgr->bo_func->bo_export_fd); EXPECT_TRUE(bufmgr->bo_func->bo_export_key); } else { @@ -100,11 +103,15 @@ TEST_F(TBMBackend, BufmgrCheckSymbols) EXPECT_TRUE(bufmgr->backend->bo_get_flags); EXPECT_TRUE(bufmgr->backend->bo_get_handle); EXPECT_TRUE(bufmgr->backend->bo_map && bufmgr->backend->bo_unmap); - EXPECT_TRUE(bufmgr->backend->bo_lock && bufmgr->backend->bo_unlock); + if (!bufmgr->backend->bo_lock) + printf("No bufmgr->backend->bo_lock symbole.\n"); + if (!bufmgr->backend->bo_unlock) + printf("No bufmgr->backend->bo_unlock symbole.\n"); EXPECT_TRUE(bufmgr->backend->bo_import_fd && bufmgr->backend->bo_export_fd); EXPECT_TRUE(bufmgr->backend->bo_import && bufmgr->backend->bo_export); EXPECT_TRUE(bufmgr->backend->surface_supported_format); - EXPECT_TRUE(bufmgr->backend->surface_bo_alloc); + if (!bufmgr->backend->surface_bo_alloc) + printf("No bufmgr->backend->surface_bo_alloc symbole.\n"); EXPECT_TRUE(bufmgr->backend->surface_get_plane_data); }