Commit b10a5033 authored by Per Cederqvist's avatar Per Cederqvist

Fix a race condition in the test suite.

* src/server/testsuite/lyskomd.0/03.exp: Fix a race condition by
sleeping one second.
parent 788b94f5
2009-05-31 Per Cederqvist <ceder@lysator.liu.se>
Fix a race condition in the test suite.
* src/server/testsuite/lyskomd.0/03.exp: Fix a race condition by
sleeping one second.
Avoid calling ungetc() on EOF.
* src/server/ram-parse.c (fskipwhite): Don't unget EOF.
......
......@@ -1166,6 +1166,15 @@ while {"$user_active_3" == "$user_active_2"} {
extracting_expect "=999 ($any_time)" user_active_3 1
}
# And to make it reliable, we wait one second more.
send "101314 35\n"
extracting_expect "=101314 ($any_time)" user_active_4 1
while {"$user_active_4" == "$user_active_3"} {
sleep 0.1
send "999 35\n"
extracting_expect "=999 ($any_time)" user_active_4 1
}
send "1313 83 1 1 0\n"
simple_expect "=1313 3 { 4 5 0 $any_num 10000000 [holl ""] 2 8 0 $any_num 01000000 [holl "Accepting i-am-on"] 1 6 6 $any_num 00000000 [holl "Running a test suite"] }"
send "1314 83 1 1 2\n"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment