mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-25 13:33:02 +08:00
fix: Taking into account variable ReturnSubDevicesAsApiDevices
Taking into account variable ReturnSubDevicesAsApiDevices during Retain and Release Device Related-To: NEO-8161 Signed-off-by: Andrzej Koska <andrzej.koska@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
81d037f59b
commit
0a3b135673
@@ -40,6 +40,18 @@ TEST(ExecutionEnvironment, givenDefaultConstructorWhenItIsCalledThenExecutionEnv
|
||||
EXPECT_EQ(0, environment.getRefApiCount());
|
||||
}
|
||||
|
||||
TEST(ExecutionEnvironment, givenDefaultConstructorWhenItIsCalledThenSubDevicesAsDevicesIsFalse) {
|
||||
ExecutionEnvironment environment;
|
||||
EXPECT_FALSE(environment.isExposingSubDevicesAsDevices());
|
||||
}
|
||||
|
||||
TEST(ExecutionEnvironment, givenDefaultConstructoWhenItIsCalledAndReturnSubDevicesAsApiDevicesIsSetThenSubDevicesAsDevicesIsTrue) {
|
||||
DebugManagerStateRestore dbgRestore;
|
||||
DebugManager.flags.ReturnSubDevicesAsApiDevices.set(1);
|
||||
ExecutionEnvironment environment;
|
||||
EXPECT_TRUE(environment.isExposingSubDevicesAsDevices());
|
||||
}
|
||||
|
||||
TEST(ExecutionEnvironment, WhenCreatingDevicesThenThoseDevicesAddRefcountsToExecutionEnvironment) {
|
||||
auto executionEnvironment = new ExecutionEnvironment();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user