]> Git Repo - qemu.git/commit - tests/boot-serial-test.c
tests/boot-serial-test: Make sure that we check the timeout regularly
authorThomas Huth <[email protected]>
Thu, 30 Nov 2017 08:53:02 +0000 (09:53 +0100)
committerPaolo Bonzini <[email protected]>
Thu, 21 Dec 2017 08:22:45 +0000 (09:22 +0100)
commit92b540dac9fc3a572c7342edd0b073000f5a6abf
tree66c02a384f7fc0196a95bf954e9a7a644c3641ec
parentcfcca361d77142f25fb1128755084cf91faa4db7
tests/boot-serial-test: Make sure that we check the timeout regularly

If the guest continuesly writes characters to the UART, we never leave
the inner while loop and thus never check whether we've reached the
timeout value. So if we fail to find the expected string in the UART
output, the test just hangs and never finishs. Use a counter to regularly
break out of the while loop to check the timeout.

Signed-off-by: Thomas Huth <[email protected]>
Message-Id: <1512031988[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
tests/boot-serial-test.c
This page took 0.026655 seconds and 4 git commands to generate.