diff options
Diffstat (limited to 'tools/slang-test/test-context.cpp')
| -rw-r--r-- | tools/slang-test/test-context.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/slang-test/test-context.cpp b/tools/slang-test/test-context.cpp index a5dc2624c..8d8c20adf 100644 --- a/tools/slang-test/test-context.cpp +++ b/tools/slang-test/test-context.cpp @@ -59,14 +59,15 @@ TestReporter* TestContext::getTestReporter() return m_reporters[slangTestThreadIndex]; } -Result TestContext::init(const char* exePath) +Result TestContext::init(const char* inExePath) { m_session = spCreateSession(nullptr); if (!m_session) { return SLANG_FAIL; } - SLANG_RETURN_ON_FAIL(TestToolUtil::getExeDirectoryPath(exePath, exeDirectoryPath)); + exePath = inExePath; + SLANG_RETURN_ON_FAIL(TestToolUtil::getExeDirectoryPath(inExePath, exeDirectoryPath)); return SLANG_OK; } |
