From 0566af6ff1659597f1bf597e2762a15dbc680257 Mon Sep 17 00:00:00 2001 From: OpportunityLiu Date: Tue, 16 Jul 2019 14:08:54 +0800 Subject: fix project test --- tests/plugins/project/test.lua | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'tests/plugins/project/test.lua') diff --git a/tests/plugins/project/test.lua b/tests/plugins/project/test.lua index 9ee9866c8..16a27b5f3 100644 --- a/tests/plugins/project/test.lua +++ b/tests/plugins/project/test.lua @@ -16,7 +16,7 @@ function test_vsxmake(t) os.cd("c") for name, _ in pairs(vs) do - if tonumber(vs) >= 2010 then + if tonumber(name) >= 2010 then -- set config config.set("arch", arch) config.set("vs", name) @@ -32,23 +32,20 @@ function test_vsxmake(t) try { function () - return os.iorun("msbuild /P:XmakeDiagnosis=true /P:XmakeVerbose=true") + os.exec("msbuild /P:XmakeDiagnosis=true /P:XmakeVerbose=true") end, finally { - function (ok, stdout, stderr) + function (ok) if ok then return end - print("run msbuild for %s", vstype) - io.write("--- msbuild output ---") - io.write(stdout, "\n", stderr) io.write("--- sln file ---") io.write(io.readfile("c_" .. vstype .. ".sln"), "\n") io.write("--- vcx file ---") io.write(io.readfile("project/project.vcxproj"), "\n") io.write("--- filter file ---") - io.write(io.readfile("project/project.vcxprok.filters"), "\n") + io.write(io.readfile("project/project.vcxproj.filters"), "\n") raise("msbuild failed") end } -- cgit v1.3.1