summaryrefslogtreecommitdiffstats
path: root/tools/slang-unit-test/unit-test-process.cpp
diff options
context:
space:
mode:
authorjsmall-nvidia <jsmall@nvidia.com>2021-12-03 11:45:01 -0500
committerGitHub <noreply@github.com>2021-12-03 11:45:01 -0500
commitda6be80f18014a3972eedf05099cd0066e9eae04 (patch)
tree687cb3853e1794b9478ee2a7b0503590f00f4669 /tools/slang-unit-test/unit-test-process.cpp
parentf4b86ff23c825f5e776a401f89302bfcd358aae8 (diff)
Split out ExecutableLocation (#2041)
* #include an absolute path didn't work - because paths were taken to always be relative. * Split out ExecutableLocation. * Fixes for changes to ExecutableLocation. * Fix issues around Process on windows. * Improve comments. Kick CI.
Diffstat (limited to 'tools/slang-unit-test/unit-test-process.cpp')
-rw-r--r--tools/slang-unit-test/unit-test-process.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/slang-unit-test/unit-test-process.cpp b/tools/slang-unit-test/unit-test-process.cpp
index 559522769..839a19f5d 100644
--- a/tools/slang-unit-test/unit-test-process.cpp
+++ b/tools/slang-unit-test/unit-test-process.cpp
@@ -14,7 +14,7 @@ using namespace Slang;
static SlangResult _createProcess(UnitTestContext* context, const char* toolName, const List<String>* optArgs, RefPtr<Process>& outProcess)
{
CommandLine cmdLine;
- cmdLine.setExecutable(context->executableDirectory, "test-process");
+ cmdLine.setExecutableLocation(ExecutableLocation(context->executableDirectory, "test-process"));
cmdLine.addArg(toolName);
if (optArgs)
{