summaryrefslogtreecommitdiffstats
path: root/tools/slang-test/test-context.cpp
diff options
context:
space:
mode:
authorjsmall-nvidia <jsmall@nvidia.com>2023-04-11 16:56:59 -0400
committerGitHub <noreply@github.com>2023-04-11 13:56:59 -0700
commit54f112f8074c8ca490195c10db8c518cdc58546a (patch)
tree899e24153d849b1b819d4c16a1d70ede1c61a386 /tools/slang-test/test-context.cpp
parent1370b3b8287e8381a22475beeeb2ebd84a5bc59b (diff)
WIP Hack to work around IFileCheck release (#2789)
* #include an absolute path didn't work - because paths were taken to always be relative. * Upgrade to slang-llvm v13.x-38 * Hack to not release IFileCheck on windows debug. * Update to slang-llvm build with cast. * Disable IFileCheck * Disable IFileCheck.
Diffstat (limited to 'tools/slang-test/test-context.cpp')
-rw-r--r--tools/slang-test/test-context.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/slang-test/test-context.cpp b/tools/slang-test/test-context.cpp
index 6c9c7f549..97c53679e 100644
--- a/tools/slang-test/test-context.cpp
+++ b/tools/slang-test/test-context.cpp
@@ -61,6 +61,10 @@ TestReporter* TestContext::getTestReporter()
SlangResult TestContext::locateFileCheck()
{
+ // TODO(JS):
+ // Hack for now, disabling IFileCheck, as appears to cause crashes.
+
+#if 0
DefaultSharedLibraryLoader* loader = DefaultSharedLibraryLoader::getSingleton();
ComPtr<ISlangSharedLibrary> library;
SLANG_RETURN_ON_FAIL(loader->loadSharedLibrary("slang-llvm", library.writeRef()));
@@ -77,6 +81,9 @@ SlangResult TestContext::locateFileCheck()
return SLANG_FAIL;
}
return fn(SLANG_IID_PPV_ARGS(m_fileCheck.writeRef()));
+#else
+ return SLANG_FAIL;
+#endif
}
Result TestContext::init(const char* inExePath)