summaryrefslogtreecommitdiff
path: root/test/snapshots/shellset.snap
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-08 23:21:47 -0300
committerGabriel Schneider <[email protected]>2026-11-09 01:28:28 -0300
commit094b562b5b90558e82a9c3e2beea386d93bd1803 (patch)
tree23e49a2f2c308acbacba532a126bb6b1631d7aca /test/snapshots/shellset.snap
parent80db18269dd9f7153a02f3efa6ff92c69948a623 (diff)
downloadpardes-094b562b5b90558e82a9c3e2beea386d93bd1803.tar.gz
pardes-094b562b5b90558e82a9c3e2beea386d93bd1803.zip
tests: the boot, argv and builtins snapshot scripts (22: argv badutf boot builtins dump load restore headersweep headersweep-restored logquiet tutor topbarexec leader mini ninep nested nested-optout shellset msg winch savepane filewatch) are process cases, test/process/tty_boot.zig, each its script's steps as Tty calls and its golden unchanged as its expectation; checked against the old runner by two breaks, the message stamp's spacing (3 fail in both) and the tty reading a middle press as a right one (the same 9 in both)
Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'test/snapshots/shellset.snap')
-rw-r--r--test/snapshots/shellset.snap45
1 files changed, 0 insertions, 45 deletions
diff --git a/test/snapshots/shellset.snap b/test/snapshots/shellset.snap
deleted file mode 100644
index 63fe03f1..00000000
--- a/test/snapshots/shellset.snap
+++ /dev/null
@@ -1,45 +0,0 @@
-# The Shell builtin names the binary the NEXT terminal execs. What is pinned
-# here is the case that has to hold on a machine you did not set up: the name
-# resolves to nothing, so Shell refuses it and says why on the message row,
-# and the next pane opens anyway with the shell that was set before.
-#
-# A default $SHELL that names nothing executable falls back to /bin/sh
-# (config.defaultShell), and the host's lookup still falls back at spawn for
-# a shell that went away after it was set: a pane never gets a child that
-# dies at exec and shows one EOF.
-#
-# The rest of the feature is unit-tested rather than pinned here, on purpose.
-# Which family a binary belongs to, what argv each one gets and where the
-# lookup searches are in host_io.Shell's own tests; the fish end of it cannot
-# be a golden at all, because fish's prompt carries a hostname and its greeting
-# a version number. (Every script in this suite runs bash, pinned through an
-# ordinary config file the harness writes — see snapshot.zig.)
-file cmd.txt Shell zznosuchshell
-file zmarkfile.txt x
-start 21 90 cmd.txt
-wait 8000 Shell zznosuchshell
-stable 700 20000
-snap boot
-# execute the line the way you would run any command: select it, Tab. Nothing
-# on any machine is installed under that name, so the resolver runs out of
-# directories. (A file pane, so the line executed is the line you can see —
-# typing into a terminal's overlay would leave `gg`/`x` selecting its output.)
-key g g
-key x
-stable 400 5000
-key tab
-stable 700 15000
-# NOTHING happened on screen, and that is the assertion: a name the builtin
-# parser does not know is a command line, so it would have forked a terminal
-# for this directory and printed `Shell: command not found` into it. One
-# pane, no error — `Shell` was consumed as a builtin and its argument went
-# with it.
-snap builtin-ran
-# a new terminal, which asks for a shell that is not there. It gets the
-# fallback: the pane greets, `ls` runs, and its output is on screen. Alt-n and
-# Alt-c, because `New`/`Newcol` open an empty +New scratch rather than a shell.
-key a-n
-key a-c
-wait 15000 zmarkfile.txt
-stable 700 20000
-snap fallback-shell