diff --git a/tests/projects/c++/modules/test_base.lua b/tests/projects/c++/modules/test_base.lua index 80206983aca..3f12d860e7b 100644 --- a/tests/projects/c++/modules/test_base.lua +++ b/tests/projects/c++/modules/test_base.lua @@ -58,11 +58,11 @@ function main(t) end local clang = find_tool("clang", {version = true}) if clang and clang.version and semver.compare(clang.version, "14.0") >= 0 then - os.exec("xmake clean -a") - os.exec("xmake f --toolchain=clang -c --yes") + os.vexec("xmake clean -a") + os.vexec("xmake f --toolchain=clang -c --yes") _build() - os.exec("xmake clean -a") - os.exec("xmake f --toolchain=clang --runtimes=c++_shared -c --yes") + os.vexec("xmake clean -a") + os.vexec("xmake f --toolchain=clang --runtimes=c++_shared -c --yes") _build() end end