Commit df731869 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Testsuite: timeout handling was broken.

parent 0e1a8811
2002-11-05 Per Cederqvist <ceder@ceder.dyndns.org>
Test suite fix.
Testsuite: timeout handling was broken.
* src/server/testsuite/config/unix.exp (fix_expect_after): Don't
unconditionally add a timeout pattern. Contrary to my belief, a
timeout pattern seems to refer to a specific spawn id. If we add
it here when there are no spawned processes, the timeout will
refer to stdin, and this will cause expect to detect eof on stdin
when run from Xenofarm. Instead, everything that spawns a process
must add timeout patterns to the expect_active variable.
(l2g_start): Add a timeout pattern to expect_active.
(lyskomd_start): Ditto.
(lyskomd_start_fail): Ditto.
(client_start): Ditto.
(client_start_fail): Ditto.
Test suite fixes.
* src/server/testsuite/config/unix.exp (dbck_run): Added missing
"global spawn_id".
* src/server/testsuite/lyskomd.0/12.exp: After dbck_run has
finished, we must re-specify which client we want to talk to.
The test suite didn't stop listening to lyskomd when it died.
* src/server/testsuite/config/unix.exp (lyskomd_death): Don't
......
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