summaryrefslogtreecommitdiff
path: root/tests/projects/c++/modules
diff options
context:
space:
mode:
authorArthur LAURENT <[email protected]>2025-09-15 04:05:37 +0200
committerArthur LAURENT <[email protected]>2025-09-18 07:07:25 +0200
commit213876242403c07495d4866de2f49ecfaf6fcfa9 (patch)
tree305eaaa3a7d5404725d26fd6737155c16cddd486 /tests/projects/c++/modules
parent438fdf4c5cf90993aca9f7be0280ddf0c298f42a (diff)
fix(C++ modules) fix outdata check in modules tests
Diffstat (limited to 'tests/projects/c++/modules')
-rw-r--r--tests/projects/c++/modules/multiple_runtimes/test.lua6
-rw-r--r--tests/projects/c++/modules/test_base.lua2
-rw-r--r--tests/projects/c++/modules/test_culling.lua4
3 files changed, 6 insertions, 6 deletions
diff --git a/tests/projects/c++/modules/multiple_runtimes/test.lua b/tests/projects/c++/modules/multiple_runtimes/test.lua
index 8ae3ae3a7..9d19543a4 100644
--- a/tests/projects/c++/modules/multiple_runtimes/test.lua
+++ b/tests/projects/c++/modules/multiple_runtimes/test.lua
@@ -15,11 +15,11 @@ function main(_)
else
str = "v1/std.cppm"
end
- clang_options = {stdmodule = true, compiler = "clang", version = CLANG_MIN_VER, {str = str, format_string = format_string}}
+ clang_options = {stdmodule = true, compiler = "clang", version = CLANG_MIN_VER, check_outdata = {str = str, format_string = format_string}}
end
local gcc_options
if is_plat("mingw") or is_plat("linux") then
- gcc_options = {stdmodule = true, compiler = "gcc", version = GCC_MIN_VER, {str = "v1/std.cppm", format_string = format_string}}
+ gcc_options = {stdmodule = true, compiler = "gcc", version = GCC_MIN_VER, check_outdata = {str = "v1/std.cppm", format_string = format_string}}
end
-- latest mingw gcc 15.1 is broken
@@ -42,6 +42,6 @@ function main(_)
if is_subhost("msys") then
gcc_options = nil
end
- local msvc_options = {stdmodule = true, version = MSVC_MIN_VER, {std = "modules\\std.ixx"}}
+ local msvc_options = {stdmodule = true, version = MSVC_MIN_VER, check_outdata = {std = "modules\\std.ixx"}}
run_tests(clang_options, gcc_options, msvc_options)
end
diff --git a/tests/projects/c++/modules/test_base.lua b/tests/projects/c++/modules/test_base.lua
index 25181fe70..8a473b364 100644
--- a/tests/projects/c++/modules/test_base.lua
+++ b/tests/projects/c++/modules/test_base.lua
@@ -107,7 +107,7 @@ function build_tests(toolchain_name, opt)
if opt.build then
opt.build()
else
- _build(opt.find_in_outdata)
+ _build(opt.check_outdata)
end
if opt.after_build then
opt.after_build(platform, toolchain_name, runtimes, policies, flags)
diff --git a/tests/projects/c++/modules/test_culling.lua b/tests/projects/c++/modules/test_culling.lua
index 9accf9a12..a2b046e74 100644
--- a/tests/projects/c++/modules/test_culling.lua
+++ b/tests/projects/c++/modules/test_culling.lua
@@ -7,7 +7,7 @@ MSVC_MIN_VER = "14.29"
function main(_)
local check_outdata = {str = "culled", format_string = "Modules culling does not work"}
local clang_options = {compiler = "clang", version = CLANG_MIN_VER, check_outdata = check_outdata}
- local gcc_options = {compiler = "gcc", version = GCC_MIN_VER, check_outdata}
- local msvc_options = {version = MSVC_MIN_VER, check_outdata}
+ local gcc_options = {compiler = "gcc", version = GCC_MIN_VER, check_outdata = check_outdata}
+ local msvc_options = {version = MSVC_MIN_VER, check_outdata = check_outdata}
run_tests(clang_options, gcc_options, msvc_options)
end