diff options
| author | Pat Tullmann <pat.github@tullmann.org> | 2025-03-14 15:14:27 -0700 |
|---|---|---|
| committer | Alex Rønne Petersen <alex@alexrp.com> | 2025-03-26 02:57:23 +0100 |
| commit | 2210c4c3604522ad0b07e15bc2a2d050923161c5 (patch) | |
| tree | b3a2e60974edcd3f4ffedb574ba3dfce844215ee /lib/std/multi_array_list.zig | |
| parent | 1408288b95952b486c8bdce3b1e8eb6910de4cb7 (diff) | |
| download | zig-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
