diff options
Diffstat (limited to 'tests/plugins/project/test.lua')
| -rw-r--r-- | tests/plugins/project/test.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/plugins/project/test.lua b/tests/plugins/project/test.lua index a518a5aa9..5cc1e7e0e 100644 --- a/tests/plugins/project/test.lua +++ b/tests/plugins/project/test.lua @@ -1,7 +1,7 @@ -import("detect.sdks.find_vstudio") import("core.project.config") import("core.platform.platform") import("core.tool.toolchain") +import("lib.detect.find_tool") function test_vsxmake(t) @@ -35,8 +35,8 @@ function test_vsxmake(t) { function () local runenvs = toolchain.load("msvc"):runenvs() - os.addenv("PATH", runenvs.PATH) - os.execv("msbuild", {"/P:XmakeDiagnosis=true", "/P:XmakeVerbose=true"}, {envs = runenvs}) + local msbuild = find_tool("msbuild", {envs = runenvs}) + os.execv(msbuild.program, {"/P:XmakeDiagnosis=true", "/P:XmakeVerbose=true"}, {envs = runenvs}) end, catch { |
