tests: improve robustness

Replace some blind timeouts with actual synchronization.
Improve performance on some slow tests.
Tweak some of the remaining timeouts.

This still isn't good enough to get 'make -j9 check'
working reliably on Cygwin for me; I think some Cygwin/
Windows scheduling issues remain.
This commit is contained in:
John Hood
2016-09-20 01:54:45 -04:00
parent e494025b24
commit 477729b315
11 changed files with 73 additions and 49 deletions
+8 -2
View File
@@ -37,7 +37,7 @@ tmux_commands()
{
for x in $(seq 1 5); do
for y in $(seq 1 5); do
for i in g l ü c k " " f a ĩ l " "; do
for i in "gl" ü "ck fa" ĩ "l "; do
printf "send-keys '%s'\n" "$i"
sleepf
done
@@ -47,7 +47,13 @@ tmux_commands()
printf "send-keys 0x0d\n"
sleep 1
printf "send-keys 0x04\n"
sleep 10
# Unreliable on Cygwin under load, it seems.
sleep 1
printf "send-keys 0x04\n"
# This will get killed by SIGPIPE.
while sleep 1; do
printf "show-options\n"
done
}
tmux_stdin()