fix(tests): migrate test suite to zig 0.16 APIs #1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "unstable"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
std.debug.printcalls that corrupt--listen=-IPC piperealpathAlloc,process.Child.run,ArrayList.writer(),Thread.sleep,Dir.makeDir,Dir.writeFilesleep()tocompat_timevialinux.nanosleepArrayListWritershim tojson_helpers.zigfor janusdcompat_time,compat_fs,zig_parser,semantic) in build.ziglink_libc = trueto test targets requiring libcResults
28 remaining failures are all runtime (LLC pipeline, pre-existing nursery/async bugs). No Zig 0.16 migration issues remain.
Test plan
zig buildcompiles cleanzig build test— zero compilation errors- Remove std.debug.print calls that corrupt --listen=- IPC pipe - Replace realpathAlloc with realPathFileAlloc across e2e tests - Replace std.process.Child.run with std.process.run (io param) - Replace .Exited with .exited (lowercase tagged union fields) - Replace Dir.writeFile(.{}) with writeFile(io, .{}) - Replace Dir.makeDir with createDir(io, path, .default_dir) - Add sleep() to compat_time via linux.nanosleep - Replace ArrayList.writer() with ArrayListWriter shim (janusd) - Replace ArrayList.writer() with appendFmt in emitters - Wire missing modules (compat_time, compat_fs, zig_parser, semantic) - Add link_libc to test targets requiring libc (janusd, scheduler) - Fix emit() signatures and graph ownership in QTJIR test helpers - Remove unused captures in for loops (zig 0.16 strict mode) All 153 files compile clean. Zero compilation errors remain. 207/236 build steps pass; remaining 28 are runtime failures (LLC pipeline, pre-existing nursery/async bugs).