From a82e09d1a3696fd533ae0b645c2f213b92cf6ca5 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Thu, 2 Jul 2026 22:12:14 +0100 Subject: [PATCH] Test fixes. --- regress/format-modifiers.sh | 2 ++ regress/targets.sh | 1 + 2 files changed, 3 insertions(+) diff --git a/regress/format-modifiers.sh b/regress/format-modifiers.sh index 518261345..131b6527a 100644 --- a/regress/format-modifiers.sh +++ b/regress/format-modifiers.sh @@ -79,6 +79,7 @@ assert_alive() } $TMUX kill-server 2>/dev/null +sleep 0.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. @@ -471,6 +472,7 @@ assert_alive "verbose expansion" # panes (and their order) is known, so start from a clean server. This must be # the last section as it discards the setup above. $TMUX kill-server 2>/dev/null +sleep 0.1 # Sessions, created in this order, so session ids (and hence creation order) # are zeta=$0, alpha=$1, mike=$2. diff --git a/regress/targets.sh b/regress/targets.sh index 9a72b0037..3c824458e 100644 --- a/regress/targets.sh +++ b/regress/targets.sh @@ -158,6 +158,7 @@ check "alpha:{last}" "2" # # ":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. +check_ok select-window -t alpha:0 check "" "alpha" '#{session_name}' # empty target is current check "" "alpha:0" '#{session_name}:#{window_index}' check ":shell" "alpha:2" '#{session_name}:#{window_index}'