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

(l2g_stop): Added a wait statement to avoid creating zombies.

(simple_expect): Added a missing space in a prompt regexp.
parent 7a27ce1c
......@@ -14,7 +14,10 @@ proc l2g_start {} {
proc l2g_stop {} {
global spawn_id
# FIXME: send explicit quit command and check that there is no
# trailing unexpected output before the "ok, I die" response.
close
wait
}
proc l2g_send {str} {
......@@ -40,7 +43,7 @@ proc simple_expect {regex {testname ""}} {
-re "($any*)$nl" {
fail "$test (unexpected line '$expect_out(1,string)' waiting for '$regex')"
}
-re "($any*)l2g>" {
-re "($any*)l2g> " {
fail "$test (unexpected incomplete line '$expect_out(1,string)' waiting for '$regex')"
}
}
......
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