aboutsummaryrefslogtreecommitdiff
path: root/test/tests.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2022-11-27 01:07:35 -0700
committerAndrew Kelley <andrew@ziglang.org>2022-11-29 23:30:38 -0700
commitceb0a632cfd6a4eada6bd27bf6a3754e95dcac86 (patch)
tree3c174281ab0b9d51b6c78234b0648e197412eea8 /test/tests.zig
parentdeda6b514691c3a7ffc7931469886d0e7be2f67e (diff)
downloadzig-ceb0a632cfd6a4eada6bd27bf6a3754e95dcac86.tar.gz
zig-ceb0a632cfd6a4eada6bd27bf6a3754e95dcac86.zip
std.mem.Allocator: allow shrink to fail
closes #13535
Diffstat (limited to 'test/tests.zig')
-rw-r--r--test/tests.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/tests.zig b/test/tests.zig
index 61758f3aa3..0057e562f2 100644
--- a/test/tests.zig
+++ b/test/tests.zig
@@ -992,7 +992,7 @@ pub const StackTracesContext = struct {
}
try buf.appendSlice("\n");
}
- break :got_result buf.toOwnedSlice();
+ break :got_result try buf.toOwnedSlice();
};
if (!mem.eql(u8, self.expect_output, got)) {