mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-30 01:35:20 +08:00
AUB file name with suffix to indicate multiple subdevices
Change-Id: I8a6417e0c1b30c938ce863c15c5cf91da504d330 Signed-off-by: Slawomir Milczarek <slawomir.milczarek@intel.com>
This commit is contained in:
@@ -975,3 +975,15 @@ HWTEST_F(AubFileStreamTests, givenAddPatchInfoCommentsCalledWhenTargetAllocation
|
||||
lineNo++;
|
||||
}
|
||||
}
|
||||
|
||||
HWTEST_F(AubFileStreamTests, givenAubCommandStreamReceiverWhenCreateFullFilePathIsCalledForMultipleDevicesThenFileNameIsExtendedWithSuffixToIndicateMultipleDevices) {
|
||||
DebugManagerStateRestore stateRestore;
|
||||
|
||||
DebugManager.flags.CreateMultipleSubDevices.set(1);
|
||||
auto fullName = AUBCommandStreamReceiver::createFullFilePath(*platformDevices[0], "aubfile");
|
||||
EXPECT_EQ(std::string::npos, fullName.find("tx"));
|
||||
|
||||
DebugManager.flags.CreateMultipleSubDevices.set(2);
|
||||
fullName = AUBCommandStreamReceiver::createFullFilePath(*platformDevices[0], "aubfile");
|
||||
EXPECT_NE(std::string::npos, fullName.find("2tx"));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user