mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-26 15:03:02 +08:00
Check support for SetUp and TearDown in HWCMDTEST_P
Change-Id: I597e6d68daaf790d63d1e3948b8c66831a483cc4 Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
1cee6fedb8
commit
d10ec9944c
@@ -88,7 +88,7 @@ extern GFXCORE_FAMILY renderCoreFamily;
|
||||
public: \
|
||||
GTEST_TEST_CLASS_NAME_(test_suite_name, test_name) \
|
||||
() {} \
|
||||
virtual void TestBody(); \
|
||||
virtual void TestBody() override; \
|
||||
\
|
||||
private: \
|
||||
static int AddToRegistry() { \
|
||||
@@ -409,7 +409,7 @@ extern GFXCORE_FAMILY renderCoreFamily;
|
||||
template <typename FamilyType> \
|
||||
void testBodyHw(); \
|
||||
\
|
||||
virtual void TestBody() { \
|
||||
virtual void TestBody() override { \
|
||||
switch (::renderCoreFamily) { \
|
||||
case IGFX_GEN8_CORE: \
|
||||
BDW_TYPED_TEST_BODY \
|
||||
@@ -469,7 +469,7 @@ extern GFXCORE_FAMILY renderCoreFamily;
|
||||
/* do nothing */ \
|
||||
} \
|
||||
\
|
||||
virtual void TestBody() { \
|
||||
virtual void TestBody() override { \
|
||||
switch (::renderCoreFamily) { \
|
||||
case IGFX_GEN8_CORE: \
|
||||
BDW_TYPED_CMDTEST_BODY \
|
||||
@@ -487,6 +487,12 @@ extern GFXCORE_FAMILY renderCoreFamily;
|
||||
ASSERT_TRUE((false && "Unknown hardware family")); \
|
||||
break; \
|
||||
} \
|
||||
} \
|
||||
void SetUp() override { \
|
||||
CALL_IF_SUPPORTED(cmdset_gen_base, test_suite_name::SetUp()); \
|
||||
} \
|
||||
void TearDown() override { \
|
||||
CALL_IF_SUPPORTED(cmdset_gen_base, test_suite_name::TearDown()); \
|
||||
} \
|
||||
\
|
||||
private: \
|
||||
|
||||
Reference in New Issue
Block a user