WSL - fixing resource cleanup on process shutdown

Resolves issues with coexistance of NEO L0 and NEO OCL libraries
within a single process running in WSL and using WDDM GPU PV

Signed-off-by: Jaroslaw Chodor <jaroslaw.chodor@intel.com>
This commit is contained in:
Jaroslaw Chodor
2021-11-19 22:58:46 +01:00
committed by Compute-Runtime-Automation
parent c77fe0bffc
commit c4e802f01b
13 changed files with 120 additions and 26 deletions

View File

@@ -875,3 +875,11 @@ TEST(DrmQueryTest, GivenRpsMaxFreqFileDoesntExistWhenFrequencyIsQueriedThenFallb
EXPECT_EQ(expectedMaxFrequency, maxFrequency);
}
TEST(DrmTest, whenCheckedIfResourcesCleanupCanBeSkippedThenReturnsFalse) {
auto executionEnvironment = std::make_unique<ExecutionEnvironment>();
executionEnvironment->prepareRootDeviceEnvironments(1);
DrmMock *pDrm = new DrmMock(*executionEnvironment->rootDeviceEnvironments[0]);
EXPECT_FALSE(pDrm->skipResourceCleanup());
delete pDrm;
}