diff options
Diffstat (limited to 'test/snapshots/respawn.snap')
| -rw-r--r-- | test/snapshots/respawn.snap | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test/snapshots/respawn.snap b/test/snapshots/respawn.snap new file mode 100644 index 00000000..fbed77e1 --- /dev/null +++ b/test/snapshots/respawn.snap @@ -0,0 +1,21 @@ +# a deleted shell pane's pty lingers in its slot (there is no close effect); +# a later spawn reusing the pane id must reap it instead of tripping the +# drainEffects spawn assert — this exact sequence crashed pre-fix +start 30 100 +wait 8000 Kill Newcol +stable 700 20000 +# middle-click Del on the lower-left pane's tag: the pane id is freed while +# its shell process stays alive in the pty slot +press middle 36 17 +release middle 36 17 +stable 700 10000 +# Alt-n reuses the freed id -> spawn effect lands on the occupied slot +key a-n +stable 700 15000 +key c-b +stable 600 8000 +text echo RESP''AWNOK +key enter +wait 10000 RESPAWNOK +stable 700 10000 +snap respawn |
