mirror of
https://github.com/tmux/tmux.git
synced 2026-10-12 21:54:23 +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.
|
# Run a command and require that it succeeds.
|
||||||
check_ok()
|
check_ok()
|
||||||
{
|
{
|
||||||
if ! $TMUX "$@"; then
|
if ! $TMUX "$@" </dev/null; then
|
||||||
echo "Command failed (expected success): $*"
|
echo "Command failed (expected success): $*"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
@@ -45,7 +45,7 @@ check_fail()
|
|||||||
{
|
{
|
||||||
exp="$1"
|
exp="$1"
|
||||||
shift
|
shift
|
||||||
out=$($TMUX "$@" 2>&1)
|
out=$($TMUX "$@" </dev/null 2>&1)
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
echo "Command succeeded (expected failure): $*"
|
echo "Command succeeded (expected failure): $*"
|
||||||
exit 1
|
exit 1
|
||||||
|
|||||||
Reference in New Issue
Block a user