aboutsummaryrefslogtreecommitdiff
path: root/lib/std/testing.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2022-12-13 18:15:18 -0500
committerGitHub <noreply@github.com>2022-12-13 18:15:18 -0500
commit6378644d4ea561a79edf44056609681e6d1438d1 (patch)
tree84094f36ee3dd9e3befaf33a5a7da82fc5388da7 /lib/std/testing.zig
parent65270cdc3345e9840427179168a09ef6e4dd34b9 (diff)
parent51ed5416ab2969a366c8c6bdc487f357bad267c3 (diff)
downloadzig-6378644d4ea561a79edf44056609681e6d1438d1.tar.gz
zig-6378644d4ea561a79edf44056609681e6d1438d1.zip
Merge pull request #13907 from Vexu/call-merge
Remove `stack` option from `@call`
Diffstat (limited to 'lib/std/testing.zig')
-rw-r--r--lib/std/testing.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/testing.zig b/lib/std/testing.zig
index 6a75999f71..af0074a549 100644
--- a/lib/std/testing.zig
+++ b/lib/std/testing.zig
@@ -828,7 +828,7 @@ pub fn checkAllAllocationFailures(backing_allocator: std.mem.Allocator, comptime
var failing_allocator_inst = std.testing.FailingAllocator.init(backing_allocator, std.math.maxInt(usize));
args.@"0" = failing_allocator_inst.allocator();
- try @call(.{}, test_fn, args);
+ try @call(.auto, test_fn, args);
break :x failing_allocator_inst.index;
};
@@ -837,7 +837,7 @@ pub fn checkAllAllocationFailures(backing_allocator: std.mem.Allocator, comptime
var failing_allocator_inst = std.testing.FailingAllocator.init(backing_allocator, fail_index);
args.@"0" = failing_allocator_inst.allocator();
- if (@call(.{}, test_fn, args)) |_| {
+ if (@call(.auto, test_fn, args)) |_| {
if (failing_allocator_inst.has_induced_failure) {
return error.SwallowedOutOfMemoryError;
} else {