mirror of
https://github.com/tmux/tmux.git
synced 2026-07-08 18:39:30 +00:00
Fix test.
This commit is contained in:
@@ -32,7 +32,7 @@ $TMUX kill-server 2>/dev/null
|
||||
# Run a command and require that it succeeds.
|
||||
check_ok()
|
||||
{
|
||||
if ! $TMUX "$@"; then
|
||||
if ! $TMUX "$@" </dev/null; then
|
||||
echo "Command failed (expected success): $*"
|
||||
exit 1
|
||||
fi
|
||||
@@ -45,7 +45,7 @@ check_fail()
|
||||
{
|
||||
exp="$1"
|
||||
shift
|
||||
out=$($TMUX "$@" 2>&1)
|
||||
out=$($TMUX "$@" </dev/null 2>&1)
|
||||
if [ $? -eq 0 ]; then
|
||||
echo "Command succeeded (expected failure): $*"
|
||||
exit 1
|
||||
|
||||
Reference in New Issue
Block a user