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:
parent
945ec1a30d
commit
9a1578e49b
1 changed files with 8 additions and 0 deletions
|
|
@ -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");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue