mirror of
https://github.com/tmux/tmux.git
synced 2024-12-04 19:58:48 +00:00
New test.
This commit is contained in:
parent
154c95d0c9
commit
6e57401610
19
regress/has-session-return.sh
Normal file
19
regress/has-session-return.sh
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# 971
|
||||||
|
# has-session should return 1 on error
|
||||||
|
|
||||||
|
PATH=/bin:/usr/bin
|
||||||
|
TERM=screen
|
||||||
|
|
||||||
|
[ -z "$TEST_TMUX" ] && TEST_TMUX=$(readlink -f ../tmux)
|
||||||
|
TMUX="$TEST_TMUX -Ltest"
|
||||||
|
$TMUX kill-server 2>/dev/null
|
||||||
|
|
||||||
|
$TMUX -f/dev/null has -tfoo </dev/null 2>/dev/null && exit 1
|
||||||
|
$TMUX -f/dev/null start\; has -tfoo </dev/null 2>/dev/null && exit 1
|
||||||
|
$TMUX -f/dev/null new -d\; has -tfoo </dev/null 2>/dev/null && exit 1
|
||||||
|
$TMUX -f/dev/null new -dsfoo\; has -tfoo </dev/null 2>/dev/null || exit 1
|
||||||
|
$TMUX kill-server 2>/dev/null
|
||||||
|
|
||||||
|
exit 0
|
Loading…
Reference in New Issue
Block a user