summaryrefslogtreecommitdiff
path: root/tests/plugins/project/test.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2020-02-15 23:02:08 +0800
committerruki <[email protected]>2020-02-15 23:02:08 +0800
commitf7f0c37a44d58412cf0d1a41c4864696084f4e1d (patch)
treebc277848976b0415c18f9c09e1fbd6f2874496a4 /tests/plugins/project/test.lua
parent9aa15302ae9fdb3a1be0b382f9bd5b3a64db0098 (diff)
add is_subhost
Diffstat (limited to 'tests/plugins/project/test.lua')
-rw-r--r--tests/plugins/project/test.lua5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/plugins/project/test.lua b/tests/plugins/project/test.lua
index c6e1069d9..e64142f7c 100644
--- a/tests/plugins/project/test.lua
+++ b/tests/plugins/project/test.lua
@@ -5,12 +5,11 @@ import("core.platform.environment")
function test_vsxmake(t)
- if os.host() ~= "windows" then
+ if os.subhost() ~= "windows" then
return t:skip("wrong host platform")
end
local projname = "testproj"
-
local tempdir = os.tmpfile()
os.mkdir(tempdir)
os.cd(tempdir)
@@ -27,8 +26,8 @@ function test_vsxmake(t)
local vs = config.get("vs")
environment.enter("toolchains")
- local vstype = "vsxmake" .. vs
-- create sln & vcxproj
+ local vstype = "vsxmake" .. vs
os.execv("xmake", {"project", "-k", vstype, "-a", arch})
os.cd(vstype)