diff options
| author | ruki <[email protected]> | 2020-02-15 23:02:08 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-02-15 23:02:08 +0800 |
| commit | f7f0c37a44d58412cf0d1a41c4864696084f4e1d (patch) | |
| tree | bc277848976b0415c18f9c09e1fbd6f2874496a4 /tests/plugins/project/test.lua | |
| parent | 9aa15302ae9fdb3a1be0b382f9bd5b3a64db0098 (diff) | |
add is_subhost
Diffstat (limited to 'tests/plugins/project/test.lua')
| -rw-r--r-- | tests/plugins/project/test.lua | 5 |
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) |
