diff options
Diffstat (limited to 'tools/slang-test/test-context.cpp')
| -rw-r--r-- | tools/slang-test/test-context.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tools/slang-test/test-context.cpp b/tools/slang-test/test-context.cpp index ede12d0d7..e3655e61d 100644 --- a/tools/slang-test/test-context.cpp +++ b/tools/slang-test/test-context.cpp @@ -130,6 +130,8 @@ TestContext::InnerMainFunc TestContext::getInnerMainFunc(const String& dirPath, loader->loadPlatformSharedLibrary(path.begin(), tool.m_sharedLibrary.writeRef()))) { tool.m_func = (InnerMainFunc)tool.m_sharedLibrary->findFuncByName("innerMain"); + tool.m_cleanDeviceCacheFunc = + (CleanDeviceCacheFunc)tool.m_sharedLibrary->findFuncByName("cleanDeviceCache"); } m_sharedLibTools.add(name, tool); @@ -152,6 +154,17 @@ void TestContext::setInnerMainFunc(const String& name, InnerMainFunc func) } } +TestContext::CleanDeviceCacheFunc TestContext::getCleanDeviceCacheFunc(const String& name) +{ + SharedLibraryTool* tool = m_sharedLibTools.tryGetValue(name); + if (tool) + { + return tool->m_cleanDeviceCacheFunc; + } + + return nullptr; +} + DownstreamCompilerSet* TestContext::getCompilerSet() { std::lock_guard<std::mutex> lock(mutex); |
