mirror of
https://github.com/tmux/tmux.git
synced 2025-04-04 23:28:51 +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
|
$TMUX kill-server 2>/dev/null
|
||||||
|
|
||||||
TMP=$(mktemp)
|
TMP=$(mktemp)
|
||||||
trap "rm -f $TMP" 0 1 15
|
OUT=$(mktemp)
|
||||||
|
trap "rm -f $TMP $OUT" 0 1 15
|
||||||
|
|
||||||
cat <<EOF >$TMP
|
cat <<EOF >$TMP
|
||||||
if 'true' 'wibble wobble'
|
if 'true' 'wibble wobble'
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
$TMUX -f$TMP new -d || exit 1
|
$TMUX -f$TMP -C new <<EOF >$OUT
|
||||||
sleep 1
|
EOF
|
||||||
E=$($TMUX display -p '#{pane_in_mode}')
|
grep -q "^%config-error $TMP:1: $TMP:1: unknown command: wibble$" $OUT
|
||||||
$TMUX kill-server 2>/dev/null
|
|
||||||
[ "$E" = "1" ] || exit 1
|
|
||||||
|
|
||||||
exit 0
|
|
||||||
|
@ -8,13 +8,14 @@ TERM=screen
|
|||||||
[ -z "$TEST_TMUX" ] && TEST_TMUX=$(readlink -f ../tmux)
|
[ -z "$TEST_TMUX" ] && TEST_TMUX=$(readlink -f ../tmux)
|
||||||
TMUX="$TEST_TMUX -Ltest"
|
TMUX="$TEST_TMUX -Ltest"
|
||||||
$TMUX kill-server 2>/dev/null
|
$TMUX kill-server 2>/dev/null
|
||||||
|
sleep 1
|
||||||
|
|
||||||
$TMUX -f/dev/null new -d 'sleep 1000' || exit 1
|
$TMUX -f/dev/null new -d 'sleep 1000' || exit 1
|
||||||
P=$($TMUX display -pt0:0.0 '#{pane_pid}')
|
P=$($TMUX display -pt0:0.0 '#{pane_pid}')
|
||||||
$TMUX -f/dev/null new -d || exit 1
|
$TMUX -f/dev/null new -d || exit 1
|
||||||
sleep 1
|
sleep 1
|
||||||
$TMUX kill-session -t0:
|
$TMUX kill-session -t0:
|
||||||
sleep 1
|
sleep 3
|
||||||
kill -0 $P 2>/dev/null && exit 1
|
kill -0 $P 2>/dev/null && exit 1
|
||||||
$TMUX kill-server 2>/dev/null
|
$TMUX kill-server 2>/dev/null
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user