mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 09:09:04 +08:00
Set context debuggable when debugging is enabled
Related-to: NEO-6896 Signed-off-by: Yates, Brandon <brandon.yates@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
5b297ba860
commit
adc51c1b47
@@ -89,6 +89,14 @@ TEST_F(WddmTests, whenftrEuDebugIsFalseThenDebuggingEnabledReturnsFalse) {
|
||||
EXPECT_FALSE(wddm->isDebugAttachAvailable());
|
||||
}
|
||||
|
||||
TEST_F(WddmTests, whenProgramDebugIsEnabledAndCreatingContextWithInternalEngineThenDebuggableContextReturnsFalse) {
|
||||
executionEnvironment->setDebuggingEnabled();
|
||||
wddm->init();
|
||||
OsContextWin osContext(*wddm, 5u, EngineDescriptorHelper::getDefaultDescriptor({aub_stream::EngineType::ENGINE_RCS, EngineUsage::Internal}));
|
||||
osContext.ensureContextInitialized();
|
||||
EXPECT_FALSE(osContext.isDebuggableContext());
|
||||
}
|
||||
|
||||
TEST(WddmPciSpeedInfoTest, WhenGetPciSpeedInfoIsCalledThenUnknownIsReturned) {
|
||||
MockExecutionEnvironment executionEnvironment;
|
||||
RootDeviceEnvironment rootDeviceEnvironment(executionEnvironment);
|
||||
|
||||
Reference in New Issue
Block a user