summaryrefslogtreecommitdiff
path: root/tools/slang-test/test-context.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/slang-test/test-context.cpp')
-rw-r--r--tools/slang-test/test-context.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/slang-test/test-context.cpp b/tools/slang-test/test-context.cpp
index 096b16d7c..d1b809766 100644
--- a/tools/slang-test/test-context.cpp
+++ b/tools/slang-test/test-context.cpp
@@ -85,7 +85,7 @@ Result TestContext::init(const char* inExePath)
{
SlangGlobalSessionDesc desc = {};
desc.enableGLSL = true;
- slang::createGlobalSession(&desc, m_session.writeRef());
+ SLANG_RETURN_ON_FAIL(slang::createGlobalSession(&desc, m_session.writeRef()));
exePath = inExePath;
SLANG_RETURN_ON_FAIL(TestToolUtil::getExeDirectoryPath(inExePath, exeDirectoryPath));
SLANG_RETURN_ON_FAIL(TestToolUtil::getDllDirectoryPath(inExePath, dllDirectoryPath));