mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
Move device name to device scope.
Change-Id: If7df4c8f97fa6b0c6f9449ae6802386c639241c2
This commit is contained in:

committed by
sys_ocldev

parent
ca87805ba0
commit
3e65a39c62
@ -84,6 +84,7 @@ TEST(Device_GetCaps, validate) {
|
||||
|
||||
std::string strDriverName = caps.name;
|
||||
std::string strFamilyName = familyName[device->getRenderCoreFamily()];
|
||||
|
||||
EXPECT_NE(std::string::npos, strDriverName.find(strFamilyName));
|
||||
|
||||
EXPECT_NE(nullptr, caps.name);
|
||||
@ -720,6 +721,7 @@ TEST(Device_GetCaps, givenSystemWithNoDriverInfoWhenGettingNameAndVersionThenRet
|
||||
auto device = Device::create<OCLRT::MockDevice>(platformDevices[0]);
|
||||
|
||||
device->setDriverInfo(nullptr);
|
||||
device->name.clear();
|
||||
device->initializeCaps();
|
||||
|
||||
const auto &caps = device->getDeviceInfo();
|
||||
|
Reference in New Issue
Block a user