aboutsummaryrefslogtreecommitdiff
path: root/lib/std/testing.zig
diff options
context:
space:
mode:
authorVeikka Tuominen <git@vexu.eu>2022-12-12 15:32:37 +0200
committerVeikka Tuominen <git@vexu.eu>2022-12-13 13:14:20 +0200
commit08b2d491bcd8c79c68495267cc71967661caea1e (patch)
treef6c8436094170f3dd197ffec479aec575c875d19 /lib/std/testing.zig
parent7b2a936173165002105ba5e76bed69654e132fea (diff)
downloadzig-08b2d491bcd8c79c68495267cc71967661caea1e.tar.gz
zig-08b2d491bcd8c79c68495267cc71967661caea1e.zip
update usages of `@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 3bb3d6e14b..91d7bc48f4 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 {