More print-to-pipe error checking in tests.
This commit is contained in:
@@ -23,10 +23,8 @@ baseline()
|
|||||||
{
|
{
|
||||||
# Generate updates that don't change the screen
|
# Generate updates that don't change the screen
|
||||||
i=0
|
i=0
|
||||||
while [ $i -lt 10 ]; do
|
while [ $i -lt 10 ] && printf 'x\b' && sleep 1; do
|
||||||
printf 'x\b'
|
|
||||||
i=$((i + 1))
|
i=$((i + 1))
|
||||||
sleep 1
|
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -52,8 +52,8 @@ tmux_commands()
|
|||||||
sleep 1
|
sleep 1
|
||||||
printf "send-keys 0x04\n"
|
printf "send-keys 0x04\n"
|
||||||
# This will get killed by SIGPIPE.
|
# This will get killed by SIGPIPE.
|
||||||
while printf "show-options\n"; do
|
while printf "show-options\n" && sleep 1; do
|
||||||
sleep 1
|
:
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -36,8 +36,8 @@ tmux_commands()
|
|||||||
# And stop the test script, so it produces its exit messge.
|
# And stop the test script, so it produces its exit messge.
|
||||||
printf "send-keys 0x0d\n"
|
printf "send-keys 0x0d\n"
|
||||||
# This will get killed by SIGPIPE.
|
# This will get killed by SIGPIPE.
|
||||||
while printf "show-options\n"; do
|
while printf "show-options\n" && sleep 1; do
|
||||||
sleep 1
|
:
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -55,8 +55,8 @@ baseline()
|
|||||||
printf 'a\nb\nc\nd\ne\nf\ng\nh\ni\nj\nk\nl\nm\nn\no\np\nq\nr\ns\nt\nu\nv\nw\nx\ny\nz\n'
|
printf 'a\nb\nc\nd\ne\nf\ng\nh\ni\nj\nk\nl\nm\nn\no\np\nq\nr\ns\nt\nu\nv\nw\nx\ny\nz\n'
|
||||||
done)
|
done)
|
||||||
read -r x
|
read -r x
|
||||||
while true; do
|
while printf '%s' "$blat"; do
|
||||||
printf '%s' "$blat"
|
:
|
||||||
done &
|
done &
|
||||||
printpid=$!
|
printpid=$!
|
||||||
(sleep 120; kill $$ $printpid) &
|
(sleep 120; kill $$ $printpid) &
|
||||||
|
|||||||
@@ -51,8 +51,8 @@ server()
|
|||||||
# Constantly send keyboard input.
|
# Constantly send keyboard input.
|
||||||
tmux_commands()
|
tmux_commands()
|
||||||
{
|
{
|
||||||
while printf "send-keys 0x0d\n"; do
|
while printf "send-keys 0x0d\n" && sleepf; do
|
||||||
sleepf
|
:
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user