mirror of
https://github.com/tmux/tmux.git
synced 2024-12-04 19:58:48 +00:00
Fix up regress test for control client size.
This commit is contained in:
parent
595b52490e
commit
860acecc0d
@ -13,37 +13,37 @@ $TMUX kill-server 2>/dev/null
|
||||
|
||||
TMP=$(mktemp)
|
||||
OUT=$(mktemp)
|
||||
#trap "rm -f $TMP $OUT" 0 1 15
|
||||
trap "rm -f $TMP $OUT" 0 1 15
|
||||
|
||||
$TMUX -f/dev/null new -d || exit 1
|
||||
sleep 1
|
||||
cat <<EOF|$TMUX -C a >$TMP
|
||||
ls -F':#{session_width} #{session_height}'
|
||||
ls -F':#{window_width} #{window_height}'
|
||||
refresh -C 100,50
|
||||
ls -F':#{session_width} #{session_height}'
|
||||
ls -F':#{window_width} #{window_height}'
|
||||
EOF
|
||||
grep ^: $TMP >$OUT
|
||||
printf ":80 24\n:100 50\n"|cmp -s $OUT - || exit 1
|
||||
printf ":80 24\n:100 49\n"|cmp -s $OUT - || exit 1
|
||||
$TMUX kill-server 2>/dev/null
|
||||
|
||||
$TMUX -f/dev/null new -d || exit 1
|
||||
sleep 1
|
||||
cat <<EOF|$TMUX -C a >$TMP
|
||||
ls -F':#{session_width} #{session_height}'
|
||||
ls -F':#{window_width} #{window_height}'
|
||||
refresh -C 80,24
|
||||
ls -F':#{session_width} #{session_height}'
|
||||
ls -F':#{window_width} #{window_height}'
|
||||
EOF
|
||||
grep ^: $TMP >$OUT
|
||||
printf ":80 24\n:80 24\n"|cmp -s $OUT - || exit 1
|
||||
printf ":80 24\n:80 23\n"|cmp -s $OUT - || exit 1
|
||||
$TMUX kill-server 2>/dev/null
|
||||
|
||||
cat <<EOF|$TMUX -C new -x 100 -y 50 >$TMP
|
||||
ls -F':#{session_width} #{session_height}'
|
||||
ls -F':#{window_width} #{window_height}'
|
||||
refresh -C 80,24
|
||||
ls -F':#{session_width} #{session_height}'
|
||||
ls -F':#{window_width} #{window_height}'
|
||||
EOF
|
||||
grep ^: $TMP >$OUT
|
||||
printf ":100 50\n:80 24\n"|cmp -s $OUT - || exit 1
|
||||
printf ":100 50\n:80 23\n"|cmp -s $OUT - || exit 1
|
||||
$TMUX kill-server 2>/dev/null
|
||||
|
||||
exit 0
|
||||
|
Loading…
Reference in New Issue
Block a user