mirror of
https://github.com/mii443/qemu.git
synced 2025-08-22 15:15:46 +00:00
tests/guest-debug: catch hanging guests
If gdb never actually connected with the guest we need to catch that and clean-up after ourselves. Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Message-Id: <20200513175134.19619-2-alex.bennee@linaro.org>
This commit is contained in:
@ -80,4 +80,10 @@ if __name__ == '__main__':
|
||||
print("GDB crashed? SKIPPING")
|
||||
exit(0)
|
||||
|
||||
try:
|
||||
inferior.wait(2)
|
||||
except subprocess.TimeoutExpired:
|
||||
print("GDB never connected? Killed guest")
|
||||
inferior.kill()
|
||||
|
||||
exit(result)
|
||||
|
Reference in New Issue
Block a user