Skip to content

Commit 95bd4ba

Browse files
Change EXPECT_TRUE to EXPECT_EQ
Change-Id: I44a6b8318ed3188138287d9571eb2784d073978b Signed-off-by: Dunajski, Bartosz <[email protected]>
1 parent 3da9aeb commit 95bd4ba

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

unit_tests/compiler_interface/compiler_interface_tests.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -848,12 +848,12 @@ TEST_F(CompilerInterfaceTest, givenNoDbgKeyForceUseDifferentPlatformWhenRequestF
848848
IGC::IgcOclDeviceCtxTagOCL *devCtx = pCompilerInterface->peekIgcDeviceCtx(device);
849849
auto igcPlatform = devCtx->GetPlatformHandle();
850850
auto igcSysInfo = devCtx->GetGTSystemInfoHandle();
851-
EXPECT_TRUE(device->getHardwareInfo().platform.eProductFamily == igcPlatform->GetProductFamily());
852-
EXPECT_TRUE(device->getHardwareInfo().platform.eRenderCoreFamily == igcPlatform->GetRenderCoreFamily());
853-
EXPECT_TRUE(device->getHardwareInfo().gtSystemInfo.SliceCount == igcSysInfo->GetSliceCount());
854-
EXPECT_TRUE(device->getHardwareInfo().gtSystemInfo.SubSliceCount == igcSysInfo->GetSubSliceCount());
855-
EXPECT_TRUE(device->getHardwareInfo().gtSystemInfo.EUCount == igcSysInfo->GetEUCount());
856-
EXPECT_TRUE(device->getHardwareInfo().gtSystemInfo.ThreadCount == igcSysInfo->GetThreadCount());
851+
EXPECT_EQ(device->getHardwareInfo().platform.eProductFamily, igcPlatform->GetProductFamily());
852+
EXPECT_EQ(device->getHardwareInfo().platform.eRenderCoreFamily, igcPlatform->GetRenderCoreFamily());
853+
EXPECT_EQ(device->getHardwareInfo().gtSystemInfo.SliceCount, igcSysInfo->GetSliceCount());
854+
EXPECT_EQ(device->getHardwareInfo().gtSystemInfo.SubSliceCount, igcSysInfo->GetSubSliceCount());
855+
EXPECT_EQ(device->getHardwareInfo().gtSystemInfo.EUCount, igcSysInfo->GetEUCount());
856+
EXPECT_EQ(device->getHardwareInfo().gtSystemInfo.ThreadCount, igcSysInfo->GetThreadCount());
857857
}
858858

859859
TEST_F(CompilerInterfaceTest, givenDbgKeyForceUseDifferentPlatformWhenRequestForNewTranslationCtxThenUseDbgKeyPlatform) {

unit_tests/device/device_caps_tests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ TEST(Device_GetCaps, validate) {
107107
EXPECT_EQ(static_cast<cl_bool>(CL_TRUE), caps.deviceAvailable);
108108
EXPECT_EQ(static_cast<cl_device_mem_cache_type>(CL_READ_WRITE_CACHE), caps.globalMemCacheType);
109109

110-
EXPECT_TRUE(sysInfo.EUCount == caps.maxComputUnits);
110+
EXPECT_EQ(sysInfo.EUCount, caps.maxComputUnits);
111111
EXPECT_LT(0u, caps.maxConstantArgs);
112112

113113
EXPECT_LE(128u, caps.maxReadImageArgs);

0 commit comments

Comments
 (0)