summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-10-30 17:12:05 -0300
committerGabriel Schneider <[email protected]>2026-10-30 17:40:51 -0300
commit0d147b0a46bf5a0a92c75f7018cb64546120f453 (patch)
treec4df833e458dfa72576acfd99897680a21963062 /test
parentfaa68dd74eacd001e3421b8baef7fe6564fb4f2b (diff)
downloadpardes-0d147b0a46bf5a0a92c75f7018cb64546120f453.tar.gz
pardes-0d147b0a46bf5a0a92c75f7018cb64546120f453.zip
walk: an enum is digested by its name (its word, a fixed-width hash), not its number: registry.Builtin, made at compile time, has Tty9p in a Linux build and not a FreeBSD one, so a +LocationsConfig (its output's origin a Builtin) digested otherwise in each, and a Linux client of a FreeBSD session holding one could not join (the hunt's H19: `the session's dump loaded as another session`, main's window client of main's session on the box; after, a terminal and a window client here join one with a +Search, a directory, a renamed file and a +LocationsConfig, and agree); walk's test, and test/cross_replay.py's session holds a +LocationsConfig and a renamed file (a FreeBSD tape replayed here diverged at pane 2.file.output before)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'test')
-rw-r--r--test/cross_replay.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/test/cross_replay.py b/test/cross_replay.py
index 26304d9a..6c5a1e4d 100644
--- a/test/cross_replay.py
+++ b/test/cross_replay.py
@@ -17,6 +17,11 @@ The session meets the host's failures, whose errors cross by name: a Look
of a fifo (a read the host refuses) and of a directory, a stat and a read
under /os over 9P, a Save into a file as if it were a directory and a
Restore of a dump that is not there (errors the host reports, anyerrors).
+And it holds what a digest must name the same in every build: a
++LocationsConfig, whose origin is a Builtin, and a file pane renamed (H19:
+no Linux client could join a FreeBSD session so). ponytail: no Grep or
+Find, which a 9P write runs on the loop, its reads no tape site (a replay
+of it panics, by any build).
"""
import os
import shutil
@@ -70,12 +75,16 @@ def record(binary, out):
started.append(int(status['pid']))
pane = next(int(row.split()[0]) for row in c.read('/index').splitlines() if row.split()[1] == b'text')
for line in (f'Look {root / "fifo"}', f'Look {root / "dir"}', f'Save {root / "a.txt" / "x"}',
- f'Restore {root / "nothing.dump"}'):
+ f'Restore {root / "nothing.dump"}', 'LocationsConfig'):
try:
c.write(f'/pane/{pane}/exec', line.encode() + b'\n')
except Exception:
pass # said as the write's error: a failure is what is wanted
time.sleep(.3)
+ # A pane a word made (+LocationsConfig: its origin a Builtin,
+ # which a FreeBSD build numbers otherwise), and a file renamed.
+ c.write(f'/pane/{pane}/ctl', f'name {root / "renamed.txt"}\n'.encode())
+ time.sleep(.3)
c.stat(f'/os{root / "a.txt"}')
assert c.read(f'/os{root / "a.txt"}') == b'hello\n'
for _ in range(2): # the failed Save left the text edited: Exit asks again