Let run tool detect qemu failures

This commit is contained in:
Norman Feske 2012-08-15 14:27:02 +02:00
parent 775b5a174b
commit a174992e4d
1 changed files with 1 additions and 0 deletions

View File

@ -464,6 +464,7 @@ proc spawn_qemu { wait_for_re timeout_value } {
if {$wait_for_re == "forever"} { interact $pid }
expect {
-re $wait_for_re { }
eof { puts stderr "Error: Qemu died unexpectedly"; exit -3 }
timeout { puts stderr "Error: Test execution timed out"; exit -2 }
}
set output $expect_out(buffer)