diff options
| author | Arthur LAURENT <[email protected]> | 2025-08-14 20:16:43 +0200 |
|---|---|---|
| committer | Arthur LAURENT <[email protected]> | 2025-08-14 20:16:43 +0200 |
| commit | d954d64c22f33df5a4de12309b992ec2a4727037 (patch) | |
| tree | 5ae428da8fdde545c82dc07c7b7d0a25ecf461f0 /tests/projects/c++/modules/test_dependency_scanner.lua | |
| parent | 84fcc1fd63aec5b6126f35806305326e4ecb936f (diff) | |
nfc(c++ modules) improve tests
Diffstat (limited to 'tests/projects/c++/modules/test_dependency_scanner.lua')
| -rw-r--r-- | tests/projects/c++/modules/test_dependency_scanner.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/projects/c++/modules/test_dependency_scanner.lua b/tests/projects/c++/modules/test_dependency_scanner.lua index 6bedb7718..406ac76f4 100644 --- a/tests/projects/c++/modules/test_dependency_scanner.lua +++ b/tests/projects/c++/modules/test_dependency_scanner.lua @@ -6,13 +6,13 @@ GCC_MIN_VER = "11" MSVC_MIN_VER = "14.29" function _build(platform, toolchain_name, runtimes, policies, flags) - os.exec("xmake f" .. platform .. "--toolchain=" .. toolchain_name .. runtimes .. "-c --yes " .. policies .. " --foo=n") - local outdata + local flags = "" if ci_is_running() then - outdata = os.iorun("xmake -rvD") - else - outdata = os.iorun("xmake -rv") + flags = "-vD" end + os.exec("xmake f" .. platform .. "--toolchain=" .. toolchain_name .. runtimes .. "-c --yes " .. policies .. " --foo=n" .. " " .. flags) + local outdata + outdata = os.iorun("xmake -r " .. flags) if outdata then if outdata:find("FOO") then raise("Modules dependency scanner update does not work\n%s", outdata) |
