diff options
| author | ruki <[email protected]> | 2020-06-20 23:19:31 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-06-20 23:19:31 +0800 |
| commit | cbad38152f8b3f27888fe1c5ff9c95acb25dc71e (patch) | |
| tree | 874ee79f8861419db8659e63b433979f7487f7be /tests/plugins/project/test.lua | |
| parent | 558c97a962d596becf1ec1d7d9c88a6239e1627b (diff) | |
fix test for calling msbuild
Diffstat (limited to 'tests/plugins/project/test.lua')
| -rw-r--r-- | tests/plugins/project/test.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/plugins/project/test.lua b/tests/plugins/project/test.lua index fd16f8645..a518a5aa9 100644 --- a/tests/plugins/project/test.lua +++ b/tests/plugins/project/test.lua @@ -34,7 +34,9 @@ function test_vsxmake(t) try { function () - os.execv("msbuild", {"/P:XmakeDiagnosis=true", "/P:XmakeVerbose=true"}, {envs = toolchain.load("msvc"):runenvs()}) + local runenvs = toolchain.load("msvc"):runenvs() + os.addenv("PATH", runenvs.PATH) + os.execv("msbuild", {"/P:XmakeDiagnosis=true", "/P:XmakeVerbose=true"}, {envs = runenvs}) end, catch { |
