diff options
| author | Tim Foley <tfoleyNV@users.noreply.github.com> | 2017-06-14 15:10:05 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-06-14 15:10:05 -0700 |
| commit | 3491d3578c7fa3e88e7c16c394ec64238c636f04 (patch) | |
| tree | 526db8d7c4e41d5823e58504cc250192f43ff3c3 /tools/slang-test/os.cpp | |
| parent | 8ddf03f295ee4149c3ce2304545e759be6fcead2 (diff) | |
| parent | 90d6a401ee0d6327b068e58a64a10f620300a38e (diff) | |
Merge pull request #7 from tfoleyNV/testing
AppVeyor: Have AppVeyor run our tests.
Diffstat (limited to 'tools/slang-test/os.cpp')
| -rw-r--r-- | tools/slang-test/os.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/tools/slang-test/os.cpp b/tools/slang-test/os.cpp index 8f5172ae6..4bc3d8e6d 100644 --- a/tools/slang-test/os.cpp +++ b/tools/slang-test/os.cpp @@ -205,6 +205,15 @@ void OSProcessSpawner::pushExecutableName( { executableName_ = executableName; commandLine_.Append(executableName); + isExecutablePath_ = false; +} + +void OSProcessSpawner::pushExecutablePath( + CoreLib::Basic::String executablePath) +{ + executableName_ = executablePath; + commandLine_.Append(executablePath); + isExecutablePath_ = true; } void OSProcessSpawner::pushArgument( @@ -305,7 +314,7 @@ OSError OSProcessSpawner::spawnAndWaitForCompletion() // `CreateProcess` requires write access to this, for some reason... BOOL success = CreateProcessW( - executableName_.ToWString(), + isExecutablePath_ ? executableName_.ToWString() : nullptr, (LPWSTR)commandLine_.ToString().ToWString(), nullptr, nullptr, |
