diff options
| author | Alex Rønne Petersen <alex@alexrp.com> | 2025-10-14 21:29:57 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-14 21:29:57 +0200 |
| commit | 4edebf40d53c7e69afd088c9967f13ab8aafe1fd (patch) | |
| tree | 76820d0a66c88498507f4a85828b1294549d8fdd /test/src/Libc.zig | |
| parent | c8b34bc8a342663d920e15a389820f02d9e911a3 (diff) | |
| parent | fcfdf99122b17a928c144c3d70418b35e6b1620e (diff) | |
| download | zig-4edebf40d53c7e69afd088c9967f13ab8aafe1fd.tar.gz zig-4edebf40d53c7e69afd088c9967f13ab8aafe1fd.zip | |
Merge pull request #25402 from alexrp/libc-test-ci
`ci`: enable running libc-test on `x86_64-linux-release`
Diffstat (limited to 'test/src/Libc.zig')
| -rw-r--r-- | test/src/Libc.zig | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/src/Libc.zig b/test/src/Libc.zig index 7a5801ea28..708e4c7bb8 100644 --- a/test/src/Libc.zig +++ b/test/src/Libc.zig @@ -10,6 +10,7 @@ pub const Options = struct { optimize_modes: []const std.builtin.OptimizeMode, test_filters: []const []const u8, test_target_filters: []const []const u8, + max_rss: usize, }; const TestCase = struct { @@ -100,6 +101,7 @@ pub fn addTarget(libc: *const Libc, target: std.Build.ResolvedTarget) void { const exe = libc.b.addExecutable(.{ .name = test_case.name, .root_module = mod, + .max_rss = libc.options.max_rss, }); const run = libc.b.addRunArtifact(exe); @@ -108,6 +110,7 @@ pub fn addTarget(libc: *const Libc, target: std.Build.ResolvedTarget) void { run.expectStdErrEqual(""); run.expectStdOutEqual(""); run.expectExitCode(0); + run.step.max_rss = libc.options.max_rss; libc.root_step.dependOn(&run.step); } |
