From 8fdada84d6453b3dc90ccc642510655c76c1a2f1 Mon Sep 17 00:00:00 2001 From: Bellekallu Rajkiran Date: Thu, 21 Nov 2024 14:45:37 +0000 Subject: [PATCH] test: Move product matcher to common matchers header Signed-off-by: Bellekallu Rajkiran --- .../product_helper/sysman_product_helper_memory_tests.cpp | 4 +--- shared/test/common/test_macros/header/common_matchers.h | 1 + 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/level_zero/sysman/test/unit_tests/sources/shared/linux/product_helper/sysman_product_helper_memory_tests.cpp b/level_zero/sysman/test/unit_tests/sources/shared/linux/product_helper/sysman_product_helper_memory_tests.cpp index f38dd0be30..8d7c79861b 100644 --- a/level_zero/sysman/test/unit_tests/sources/shared/linux/product_helper/sysman_product_helper_memory_tests.cpp +++ b/level_zero/sysman/test/unit_tests/sources/shared/linux/product_helper/sysman_product_helper_memory_tests.cpp @@ -911,8 +911,6 @@ TEST(SysmanProductHelperTest, GivenInvalidProductFamilyWhenCallingProductHelperC EXPECT_EQ(nullptr, pSysmanProductHelper); } -using IsNotDG1 = IsNotWithinProducts; - HWTEST2_F(SysmanProductHelperMemoryTest, GivenSysmanProductHelperInstanceWhenCallingGetMemoryPropertiesThenVerifyCallSucceeds, IsNotDG1) { std::unique_ptr pDrm = std::make_unique(const_cast(pSysmanDeviceImp->getRootDeviceEnvironment())); pDrm->setMemoryType(NEO::DeviceBlobConstants::MemoryType::hbm3); @@ -1176,4 +1174,4 @@ HWTEST2_F(SysmanProductHelperMemoryTest, GivenSysmanProductHelperInstanceWhenCal } // namespace ult } // namespace Sysman -} // namespace L0 \ No newline at end of file +} // namespace L0 diff --git a/shared/test/common/test_macros/header/common_matchers.h b/shared/test/common/test_macros/header/common_matchers.h index 45e828e092..6d9f4c6b42 100644 --- a/shared/test/common/test_macros/header/common_matchers.h +++ b/shared/test/common/test_macros/header/common_matchers.h @@ -62,6 +62,7 @@ using IsLNL = IsProduct; using IsAtLeastMtl = IsAtLeastProduct; using IsAtMostDg2 = IsAtMostProduct; +using IsNotDG1 = IsNotWithinProducts; using IsAtLeastPVC = IsAtLeastProduct; using IsAtMostPVC = IsAtMostProduct; using IsNotPVC = IsNotWithinProducts;