aboutsummaryrefslogtreecommitdiff
path: root/lib/std/multi_array_list.zig
diff options
context:
space:
mode:
authorPat Tullmann <pat.github@tullmann.org>2025-03-14 15:14:27 -0700
committerAlex Rønne Petersen <alex@alexrp.com>2025-03-26 02:57:23 +0100
commit2210c4c3604522ad0b07e15bc2a2d050923161c5 (patch)
treeb3a2e60974edcd3f4ffedb574ba3dfce844215ee /lib/std/multi_array_list.zig
parent1408288b95952b486c8bdce3b1e8eb6910de4cb7 (diff)
downloadzig-2210c4c3604522ad0b07e15bc2a2d050923161c5.tar.gz
zig-2210c4c3604522ad0b07e15bc2a2d050923161c5.zip
lib/std/posix: test ftruncate via std.fs.File.setEndPos()
Add a test for std.fs.File's `setEndPos` (which is a simple wrapper around `std.posix.ftruncate`) to exercise some success and failure paths. Explicitly check that the `ftruncate` length isn't negative when interpreted as a signed value. This avoids having to decode overloaded `EINVAL` errors. Add errno handling to Windows path to map INVALID_PARAMETER to FileTooBig. Fixes #22960
Diffstat (limited to 'lib/std/multi_array_list.zig')
0 files changed, 0 insertions, 0 deletions