summaryrefslogtreecommitdiff
path: root/tests/plugins/project/test.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2020-06-20 22:31:14 +0800
committerruki <[email protected]>2020-06-20 22:31:14 +0800
commit550f5225b01a3c3c0c88bc2c702d38c667b28528 (patch)
treeb7dcb72313b66fa5a54ba26d5b59f60483ca860e /tests/plugins/project/test.lua
parentf7432806254222aff2889eef5eba27716985ba51 (diff)
improve test
Diffstat (limited to 'tests/plugins/project/test.lua')
-rw-r--r--tests/plugins/project/test.lua6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/plugins/project/test.lua b/tests/plugins/project/test.lua
index e3295d68d..fd16f8645 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")
function test_vsxmake(t)
@@ -34,9 +34,7 @@ function test_vsxmake(t)
try
{
function ()
- environment.enter("toolchains")
- os.exec("msbuild /P:XmakeDiagnosis=true /P:XmakeVerbose=true")
- environment.leave("toolchains")
+ os.execv("msbuild", {"/P:XmakeDiagnosis=true", "/P:XmakeVerbose=true"}, {envs = toolchain.load("msvc"):runenvs()})
end,
catch
{