]> Git Repo - qemu.git/commit - tests/boot-serial-test.c
tests: Exit boot-serial-test loop if child dies
authorRichard Henderson <[email protected]>
Mon, 17 Dec 2018 03:58:16 +0000 (19:58 -0800)
committerThomas Huth <[email protected]>
Mon, 17 Dec 2018 14:37:50 +0000 (15:37 +0100)
commit21f80286cc48142c2df1530eba32bd70131a1bdc
tree691406632c7a10e93f1cede7e7f77b6211355b88
parent43497c438d55e0e22369a6c633f9c8e3f6a498f2
tests: Exit boot-serial-test loop if child dies

There's no point in waiting 5 full minutes when there will be
no more output.  Compute timeout based on elapsed wall clock
time instead of N * delays, as the delay is a minimum sleep time.

Cc: Thomas Huth <[email protected]>
Cc: Laurent Vivier <[email protected]>
Cc: Paolo Bonzini <[email protected]>
Signed-off-by: Richard Henderson <[email protected]>
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>
Reviewed-by: Wainer dos Santos Moschetta <[email protected]>
[thuth: Replaced global_qtest with local qts variable]
Signed-off-by: Thomas Huth <[email protected]>
tests/boot-serial-test.c
tests/libqtest.c
tests/libqtest.h
This page took 0.021209 seconds and 4 git commands to generate.