Test fixes.

This commit is contained in:
Nicholas Marriott
2026-07-02 22:12:14 +01:00
parent 63a8af0e15
commit a82e09d1a3
2 changed files with 3 additions and 0 deletions

View File

@@ -79,6 +79,7 @@ assert_alive()
} }
$TMUX kill-server 2>/dev/null $TMUX kill-server 2>/dev/null
sleep 0.1
$TMUX new-session -d -s main -x 80 -y 24 || exit 1 $TMUX new-session -d -s main -x 80 -y 24 || exit 1
# Single-window session used by test_expand for format_expand-context tests. # Single-window session used by test_expand for format_expand-context tests.
@@ -471,6 +472,7 @@ assert_alive "verbose expansion"
# panes (and their order) is known, so start from a clean server. This must be # panes (and their order) is known, so start from a clean server. This must be
# the last section as it discards the setup above. # the last section as it discards the setup above.
$TMUX kill-server 2>/dev/null $TMUX kill-server 2>/dev/null
sleep 0.1
# Sessions, created in this order, so session ids (and hence creation order) # Sessions, created in this order, so session ids (and hence creation order)
# are zeta=$0, alpha=$1, mike=$2. # are zeta=$0, alpha=$1, mike=$2.

View File

@@ -158,6 +158,7 @@ check "alpha:{last}" "2"
# #
# ":win" uses the current session; confirm that is alpha first so the test is # ":win" uses the current session; confirm that is alpha first so the test is
# unambiguous, then resolve a window inside it with an empty session part. # unambiguous, then resolve a window inside it with an empty session part.
check_ok select-window -t alpha:0
check "" "alpha" '#{session_name}' # empty target is current check "" "alpha" '#{session_name}' # empty target is current
check "" "alpha:0" '#{session_name}:#{window_index}' check "" "alpha:0" '#{session_name}:#{window_index}'
check ":shell" "alpha:2" '#{session_name}:#{window_index}' check ":shell" "alpha:2" '#{session_name}:#{window_index}'