mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-06 10:26:29 +08:00
Define variable with binary name suffix
use this variable in tests as it is set once in main.cpp create function to get binary kernel filename Change-Id: Ibf7b4c2d390caefda4a5d7fc4667006e7f2edde8
This commit is contained in:
committed by
sys_ocldev
parent
103fe670bd
commit
180de340d8
@@ -40,6 +40,12 @@ TEST_F(DeviceTest, Create) {
|
||||
EXPECT_NE(nullptr, pDevice);
|
||||
}
|
||||
|
||||
TEST_F(DeviceTest, givenDeviceWhenGetProductAbbrevThenReturnsHardwarePrefix) {
|
||||
const auto productAbbrev = pDevice->getProductAbbrev();
|
||||
const auto hwPrefix = hardwarePrefix[pDevice->getHardwareInfo().pPlatform->eProductFamily];
|
||||
EXPECT_EQ(hwPrefix, productAbbrev);
|
||||
}
|
||||
|
||||
TEST_F(DeviceTest, getCommandStreamReceiver) {
|
||||
EXPECT_NE(nullptr, &pDevice->getCommandStreamReceiver());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user