zig/lib/std
Pat Tullmann d0e288ab18 lib/std/posix/test.zig: enable disabled tests using CWD
Four tests in lib/std/posix/test.zig were disabled because they created
fixed-name files in the current working directory, and this caused
problems if tests were running in parallel with other build's tests.

This PR fixes those tests to all use `std.testing.tmpDir` to create unique
temporary names and directories.

Also clean the tests up to more consistently use `defer` to clean up, or
to just rely on tmpDir cleanup to remove individual files.

Working on these tests revealed a bunch of stale WASI code paths in
posix.zig, fixed by replacing stale `wast.AT.FDCWD` references with just
`AT.FDCWD`.

Fixes #14968.
2025-02-20 08:44:09 +01:00
..
Build std.Target: Remove functions that just wrap component functions. 2025-02-17 19:18:19 +01:00
c std.Target: Remove functions that just wrap component functions. 2025-02-17 19:18:19 +01:00
compress std.compress.flate.Lookup: Replace invisible doc comments with top-level doc comments 2025-01-22 23:34:57 +09:00
crypto crypto.pwhash.bcrypt: make silently_truncate_password a member of Params (#22792) 2025-02-19 22:37:51 +01:00
debug std.Target: Remove functions that just wrap component functions. 2025-02-17 19:18:19 +01:00
dwarf Dwarf: remove redundant debug info 2024-12-19 17:10:03 -05:00
fmt
fs std.Target: Remove functions that just wrap component functions. 2025-02-17 19:18:19 +01:00
hash all: update to std.builtin.Type.Pointer.Size field renames 2025-01-16 12:46:29 +00:00
heap std.Target: Remove functions that just wrap component functions. 2025-02-17 19:18:19 +01:00
http Revert "std.http.Server: add Request.getHeader() function (#21625)" 2025-01-27 11:13:56 -08:00
io std.process: adding hasNonEmptyEnvVar() and using for NO_COLOR 2025-02-06 15:00:48 +01:00
json std.ArrayList: initial capacity based on cache line size 2025-02-13 00:19:03 -08:00
math x86_64: rewrite scalar @ctz 2025-02-18 09:47:44 -05:00
mem std.mem.Allocator.VTable: improve doc comment wording 2025-02-06 14:50:20 -08:00
meta all: update to std.builtin.Type.{Pointer,Array,StructField} field renames 2025-01-16 12:49:58 +00:00
net std.net.listen: no REUSEPORT with unix socket 2025-01-26 18:40:34 +01:00
os std.time: more precise nanoTimestamp in windows 2025-02-13 16:55:58 +01:00
posix lib/std/posix/test.zig: enable disabled tests using CWD 2025-02-20 08:44:09 +01:00
process process.Child.collectOutput: Switch to Allocator/ArrayListUnmanaged 2025-02-03 17:07:27 -08:00
Random
sort
tar
Target spirv: ziggify and remove unknown spirv features 2025-02-18 18:08:47 +03:30
testing std.testing.FailingAllocator: flatten namespace 2025-02-06 14:23:23 -08:00
Thread std.Target: Remove functions that just wrap component functions. 2025-02-17 19:18:19 +01:00
time
tz
unicode
valgrind
zig std.Target: Remove functions that just wrap component functions. 2025-02-17 19:18:19 +01:00
zip std.zip: Add ZIP64 support for local file header extra field 2025-01-17 22:55:55 +01:00
zon zon.stringify: Correctly serialize unions with void fields 2025-02-19 07:21:59 +01:00
array_hash_map.zig std.ArrayHashMap: base linear_scan_max on cache line size 2025-02-12 01:55:26 -08:00
array_list.zig std.ArrayList: initial capacity based on cache line size 2025-02-13 00:19:03 -08:00
ascii.zig
atomic.zig std.atomic: fix cache line size for RISC-V 2025-01-12 04:51:00 +01:00
base64.zig
bit_set.zig
BitStack.zig
bounded_array.zig std.BoundedArray: popOrNull() -> pop() [v2] (#22723) 2025-02-09 11:46:15 +00:00
buf_map.zig
buf_set.zig
Build.zig std.Build: add more explicit error sets to some functions 2025-01-26 19:03:33 +01:00
builtin.zig std.Target: Remove functions that just wrap component functions. 2025-02-17 19:18:19 +01:00
c.zig std.Target: Remove functions that just wrap component functions. 2025-02-17 19:18:19 +01:00
coff.zig
compress.zig fix typo of anytype to type 2025-02-05 13:58:15 +01:00
crypto.zig
debug.zig std.Target: Remove functions that just wrap component functions. 2025-02-17 19:18:19 +01:00
dwarf.zig
dynamic_library.zig adjust runtime page size APIs 2025-02-06 14:23:23 -08:00
elf.zig std.Target: Remove Cpu.Arch.spu_2. 2025-02-17 19:17:55 +01:00
enums.zig all: update to std.builtin.Type.{Pointer,Array,StructField} field renames 2025-01-16 12:49:58 +00:00
fifo.zig runtime page size detection 2025-02-06 14:23:23 -08:00
fmt.zig std.fmt.digits2: optimize for ReleaseSmall 2025-02-12 14:45:38 -08:00
fs.zig
gpu.zig std.gpu: stop using comptimePrint 2025-02-18 18:07:31 +03:30
hash.zig
hash_map.zig std.hash_map: placeholder for doc comments 2025-02-06 14:23:23 -08:00
heap.zig std.Target: Remove functions that just wrap component functions. 2025-02-17 19:18:19 +01:00
http.zig
io.zig all: update to std.builtin.Type.{Pointer,Array,StructField} field renames 2025-01-16 12:49:58 +00:00
json.zig
leb128.zig
linked_list.zig
log.zig
macho.zig
math.zig std: remove special cases for stage2_x86_64 that are no longer needed 2025-02-12 09:48:17 -05:00
mem.zig std: add containsAtLeastScalar to mem (#22826) 2025-02-15 03:40:55 +01:00
meta.zig docs: update old reference from builtin.Type.Struct to builtin.Type.@"struct" 2025-02-18 23:35:16 +01:00
multi_array_list.zig std.ArrayList: initial capacity based on cache line size 2025-02-13 00:19:03 -08:00
net.zig remove unneeded native_os check 2025-02-16 01:02:33 +01:00
once.zig
os.zig x86_64: implement switch jump tables 2025-01-16 20:42:08 -05:00
pdb.zig
posix.zig lib/std/posix/test.zig: enable disabled tests using CWD 2025-02-20 08:44:09 +01:00
priority_dequeue.zig
priority_queue.zig std.priority_queue: add useful functions from ArrayList API 2025-02-01 19:02:39 +01:00
process.zig adjust runtime page size APIs 2025-02-06 14:23:23 -08:00
Progress.zig all: update to std.builtin.Type.Pointer.Size field renames 2025-01-16 12:46:29 +00:00
Random.zig Allocator/Random: document that comparing ptr may result in illegal behavior 2025-02-03 17:07:28 -08:00
RingBuffer.zig
segmented_list.zig
SemanticVersion.zig
simd.zig x86_64: implement switch jump tables 2025-01-16 20:42:08 -05:00
sort.zig
start.zig adjust runtime page size APIs 2025-02-06 14:23:23 -08:00
static_string_map.zig
std.zig adjust runtime page size APIs 2025-02-06 14:23:23 -08:00
tar.zig
Target.zig spirv: ziggify and remove unknown spirv features 2025-02-18 18:08:47 +03:30
testing.zig std.testing: improve compile error on untagged union equality 2025-02-16 15:51:40 +01:00
Thread.zig std.Target: Remove functions that just wrap component functions. 2025-02-17 19:18:19 +01:00
time.zig std.time: more precise nanoTimestamp in windows 2025-02-13 16:55:58 +01:00
treap.zig
tz.zig
unicode.zig
Uri.zig
valgrind.zig
wasm.zig wasm linker: implement @tagName for sparse enums 2025-01-15 15:11:36 -08:00
zig.zig std.process: adding hasNonEmptyEnvVar() and using for NO_COLOR 2025-02-06 15:00:48 +01:00
zip.zig runtime page size detection 2025-02-06 14:23:23 -08:00
zon.zig compiler,std: implement ZON support 2025-02-03 09:14:37 +00:00