thing-tui: pin that building a guard installs the panic hook

Per the steward's decision on thing2:finding:cut-tui-host.s1.panic-hook-install-untested.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-11-29 02:09:43 +01:00
commit 9a1578e49b

View file

@ -118,3 +118,11 @@ fn a_panic_after_the_guard_dropped_writes_nothing() {
owner_panics(&next);
assert_eq!(count(&at_hand_over().expect("hook ran"), LEAVE), 1);
}
#[test]
fn building_a_guard_installs_the_hook() {
let out = Shared::default();
owner_panics(&out);
let seen = at_hand_over().expect("the previous hook was reached");
assert_eq!(count(&seen, LEAVE), 1, "restored before the previous hook, by the hook");
}