From: SooChan Lim Date: Fri, 11 Jun 2021 06:34:42 +0000 (+0900) Subject: tc: skip the test case when it does not have hal-tbm module X-Git-Tag: submit/tizen/20210611.072439~1 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Flibtbm.git;a=commitdiff_plain;h=1fb4943fdeaca6b1e88fdfc4013a76a3ce0d2b7b tc: skip the test case when it does not have hal-tbm module Change-Id: I989c46b00750fc4b6d4a683dec44f6a015cea3df --- diff --git a/haltests/tc_tbm_surface_internal.cpp b/haltests/tc_tbm_surface_internal.cpp index c8e98e8..6b64b17 100644 --- a/haltests/tc_tbm_surface_internal.cpp +++ b/haltests/tc_tbm_surface_internal.cpp @@ -688,6 +688,8 @@ TEST_F(TBMSurfaceInternal, ExportNegative_InvalidParameters) { tbm_error_e error = TBM_ERROR_NONE; + TBM_UT_SKIP_FLAG(!bufmgr->use_hal_tbm); + // invalid surface test EXPECT_EQ(tbm_surface_internal_export(invalid_surface, &error), nullptr); EXPECT_STREQ(tbm_error_str(error), tbm_error_str(TBM_ERROR_INVALID_PARAMETER)); @@ -699,6 +701,8 @@ TEST_F(TBMSurfaceInternal, ExportPositive_Success) tbm_surface_buffer_data *buffer_data = NULL; unsigned int i; + TBM_UT_SKIP_FLAG(!bufmgr->use_hal_tbm); + EXPECT_NE((buffer_data = tbm_surface_internal_export(surface, &error)), nullptr); EXPECT_STREQ(tbm_error_str(error), tbm_error_str(TBM_ERROR_NONE)); @@ -716,6 +720,8 @@ TEST_F(TBMSurfaceInternal, ImportNegative_InvalidParameters) tbm_error_e error = TBM_ERROR_NONE; tbm_surface_h surface1 = NULL; + TBM_UT_SKIP_FLAG(!bufmgr->use_hal_tbm); + EXPECT_EQ((surface1 = tbm_surface_internal_import(NULL, NULL, &error)), nullptr); EXPECT_STREQ(tbm_error_str(error), tbm_error_str(TBM_ERROR_INVALID_PARAMETER)); } @@ -728,6 +734,8 @@ TEST_F(TBMSurfaceInternal, ImportPositive_Success) tbm_surface_h surface1 = NULL; unsigned int i; + TBM_UT_SKIP_FLAG(!bufmgr->use_hal_tbm); + // export surface_data EXPECT_NE((buffer_data = tbm_surface_internal_export(surface, &error)), nullptr); EXPECT_STREQ(tbm_error_str(error), tbm_error_str(TBM_ERROR_NONE));