diff options
Diffstat (limited to 'tests/plugins')
| -rw-r--r-- | tests/plugins/project/test.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/plugins/project/test.lua b/tests/plugins/project/test.lua index e3295d68d..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.platform.environment") +import("core.tool.toolchain") +import("lib.detect.find_tool") function test_vsxmake(t) @@ -34,9 +34,9 @@ function test_vsxmake(t) try { function () - environment.enter("toolchains") - os.exec("msbuild /P:XmakeDiagnosis=true /P:XmakeVerbose=true") - environment.leave("toolchains") + local runenvs = toolchain.load("msvc"):runenvs() + local msbuild = find_tool("msbuild", {envs = runenvs}) + os.execv(msbuild.program, {"/P:XmakeDiagnosis=true", "/P:XmakeVerbose=true"}, {envs = runenvs}) end, catch { |
