mirror of
https://github.com/tmux/tmux.git
synced 2024-12-04 11:55:56 +00:00
Errors are now displayed on attach so use control mode to test
instead.
This commit is contained in:
parent
8e8b9865d1
commit
9e19f132f2
@ -11,16 +11,13 @@ TMUX="$TEST_TMUX -Ltest"
|
||||
$TMUX kill-server 2>/dev/null
|
||||
|
||||
TMP=$(mktemp)
|
||||
trap "rm -f $TMP" 0 1 15
|
||||
OUT=$(mktemp)
|
||||
trap "rm -f $TMP $OUT" 0 1 15
|
||||
|
||||
cat <<EOF >$TMP
|
||||
if 'true' 'wibble wobble'
|
||||
EOF
|
||||
|
||||
$TMUX -f$TMP new -d || exit 1
|
||||
sleep 1
|
||||
E=$($TMUX display -p '#{pane_in_mode}')
|
||||
$TMUX kill-server 2>/dev/null
|
||||
[ "$E" = "1" ] || exit 1
|
||||
|
||||
exit 0
|
||||
$TMUX -f$TMP -C new <<EOF >$OUT
|
||||
EOF
|
||||
grep -q "^%config-error $TMP:1: $TMP:1: unknown command: wibble$" $OUT
|
||||
|
@ -8,13 +8,14 @@ TERM=screen
|
||||
[ -z "$TEST_TMUX" ] && TEST_TMUX=$(readlink -f ../tmux)
|
||||
TMUX="$TEST_TMUX -Ltest"
|
||||
$TMUX kill-server 2>/dev/null
|
||||
sleep 1
|
||||
|
||||
$TMUX -f/dev/null new -d 'sleep 1000' || exit 1
|
||||
P=$($TMUX display -pt0:0.0 '#{pane_pid}')
|
||||
$TMUX -f/dev/null new -d || exit 1
|
||||
sleep 1
|
||||
$TMUX kill-session -t0:
|
||||
sleep 1
|
||||
sleep 3
|
||||
kill -0 $P 2>/dev/null && exit 1
|
||||
$TMUX kill-server 2>/dev/null
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user