@@ -713,26 +713,9 @@ TEST(MemoryInfo, givenMemoryInfoWithMemoryPolicyDisabledAndValidOsLibraryWhenCal
713713 auto executionEnvironment = std::make_unique<MockExecutionEnvironment>();
714714 auto drm = std::make_unique<DrmQueryMock>(*executionEnvironment->rootDeviceEnvironments [0 ]);
715715
716- // setup numa library in MemoryInfo
717- WhiteBoxNumaLibrary::GetMemPolicyPtr memPolicyHandler =
718- [](int *, unsigned long [], unsigned long , void *, unsigned long ) -> long { return -1 ; };
719- WhiteBoxNumaLibrary::NumaAvailablePtr numaAvailableHandler =
720- [](void ) -> int { return 0 ; };
721- WhiteBoxNumaLibrary::NumaMaxNodePtr numaMaxNodeHandler =
722- [](void ) -> int { return 4 ; };
723- MockOsLibrary::loadLibraryNewObject = new MockOsLibraryCustom (nullptr , true );
724- MockOsLibraryCustom *osLibrary = static_cast <MockOsLibraryCustom *>(MockOsLibrary::loadLibraryNewObject);
725- // register proc pointers
726- osLibrary->procMap [std::string (WhiteBoxNumaLibrary::procGetMemPolicyStr)] = reinterpret_cast <void *>(memPolicyHandler);
727- osLibrary->procMap [std::string (WhiteBoxNumaLibrary::procNumaAvailableStr)] = reinterpret_cast <void *>(numaAvailableHandler);
728- osLibrary->procMap [std::string (WhiteBoxNumaLibrary::procNumaMaxNodeStr)] = reinterpret_cast <void *>(numaMaxNodeHandler);
729- WhiteBoxNumaLibrary::osLibraryLoadFunction = MockOsLibraryCustom::load;
730716 auto memoryInfo = std::make_unique<MemoryInfo>(regionInfo, *drm);
731717 ASSERT_NE (nullptr , memoryInfo);
732718 ASSERT_FALSE (memoryInfo->isMemPolicySupported ());
733-
734- MockOsLibrary::loadLibraryNewObject = nullptr ;
735- WhiteBoxNumaLibrary::osLibrary.reset ();
736719}
737720TEST (MemoryInfo, givenMemoryInfoWithRegionsWhenCreatingGemExtWithChunkingButSizeLessThanAllowedThenExceptionIsThrown) {
738721 DebugManagerStateRestore restorer;
0 commit comments