test: donot use parametized tests 83/273883/1
authorSooChan Lim <sc1.lim@samsung.com>
Fri, 15 Apr 2022 07:09:05 +0000 (16:09 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Fri, 15 Apr 2022 07:09:05 +0000 (16:09 +0900)
for fix the testing error message from Gtest module.

There are no TEST_P cases in tbm-haltests yet.
Therefore TBMEnv don't need to inherit the parametized class of Gtest.

Change-Id: I245efc1206a39dd562ae5781be2cf7011f286a0b

haltests/tc_tbm.h
haltests/tc_tbm_bo.cpp
haltests/tc_tbm_bufmgr.cpp
haltests/tc_tbm_env.cpp

index 65196c5..7c67daa 100644 (file)
 #define TBM_UT_BO_SIZE             1024
 #define TBM_UT_SURFACE_QUEUE_SIZE  4
 
+using ::testing::Test;
 using ::testing::TestWithParam;
 using ::testing::Bool;
 using ::testing::Values;
 using ::testing::Combine;
 
-class TBMEnv : public TestWithParam< std::tuple<bool, bool, const char*> >
+class TBMEnv : public Test
 {
 public:
        void SetUp(void);
index b539863..f63c8c1 100644 (file)
@@ -1212,6 +1212,8 @@ TEST_F(TBMBo, BoGetFlagsWithBoParamTest)
        EXPECT_STREQ(tbm_error_str(tbm_get_last_error()), tbm_error_str(TBM_ERROR_INVALID_PARAMETER));
 }
 
+#if 0
 INSTANTIATE_TEST_CASE_P(TBMBoParams,
                                                TBMBo,
                                                Combine(Bool(), Bool(), Values("none")));
+#endif
index 9357b69..2faf9e3 100644 (file)
@@ -154,7 +154,8 @@ TEST_F(TBMBufmgr, BufmgrSetBoLockTypeWithBufmgrParamTest)
 /* tbm_bufmgr_debug_dump_set_scale() */
 /* tbm_bufmgr_debug_get_ref_count */
 
+#if 0
 INSTANTIATE_TEST_CASE_P(TBMBufmgrParams,
                                                TBMBufmgr,
                                                Combine(Bool(), Bool(), Values("none")));
-
+#endif
index c2325bc..48ebceb 100644 (file)
@@ -209,6 +209,8 @@ TEST_F(TBMEnv, SurfaceQueryFormatSuccess)
        free(formats);
 }
 
+#if 0
 INSTANTIATE_TEST_CASE_P(TBMEnvParams,
                                                TBMEnv,
                                                Combine(Bool(), Bool(), Values("none")));
+#endif