From ef0d017705146a74bf7cc2706b9796f227ea6977 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Wed, 4 Nov 2026 16:33:08 -0300 Subject: test: test/fs.py's discovery, run_file, exit_answers, unattended_messages_expire, directory_panes, putall_answers_after_its_saves, new_terminals_named_once, recent_survives_restart, store_shared_between_windows, odd_paths, delcol_last_keeps_window, cut_writes and edit_commands in Zig, the Python deleted (and its now unused newest, walk_tree, del_twice and the --discovery switch): at T2 in new test/process/{tree,terminals,root_ctl,edit}.zig and other_files.zig (the tree's listing, stats, log follow, ctl lock, focus, commands, sel, Save making directories, the 16 slots; a write cut at an 8 KiB msize; pty/run's answers, busy and shell gone; terminals named once; Exit; MessageLinger unattended; Putall; odd paths and ThemeFile; Edit's < | > off the loop, a held write answered after a later read and flushed, X and w; /recent across a restart and a store two sessions share), at T1 a directory pane in test/behaviour/look_and_exec.zig and 9P's new after Delcol of the last column in columns_and_tags.zig; discovery brought up to the tree as documented (sessions, kbdin, mousein at the root, /index stats 0, a sel write stays selected, the unknown-message words, a look's line in dot, a Save under / refused as permission denied), as the Python had gone stale; process.Conn gains replace, writeCut, create, newPane, newest, look, dialRefusal, send and answer, and process.sleep; a failing process test prints its error return trace; each checked to fail against a break (a detached session 161 wide, 17 connection slots, a pty taking one row, Edit's failure said as exit code, ThemeFile's .zon words changed, Exit not quitting, unattended messages never expiring, a directory pane's sub/ without its slash, Putall's modified-on-disk words changed, /recent saying shut for closed, a missing interpreter said as missing) Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge --- test/process_test.zig | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test/process_test.zig') diff --git a/test/process_test.zig b/test/process_test.zig index 9924b9dd..9ae6bb58 100644 --- a/test/process_test.zig +++ b/test/process_test.zig @@ -7,6 +7,10 @@ const std = @import("std"); const files = .{ @import("process/other_files.zig"), + @import("process/tree.zig"), + @import("process/terminals.zig"), + @import("process/root_ctl.zig"), + @import("process/edit.zig"), }; pub fn main(init: std.process.Init) !void { @@ -24,6 +28,7 @@ pub fn main(init: std.process.Init) !void { std.debug.print("PASS {s}\n", .{case[0]}); } else |err| { failed += 1; + if (@errorReturnTrace()) |t| std.debug.dumpErrorReturnTrace(t); std.debug.print("FAIL {s}: {t}\n", .{ case[0], err }); } } -- cgit v1.3