projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2478b8e
)
tests/guest-debug: catch hanging guests
author
Alex Bennée
<alex.bennee@linaro.org>
Wed, 13 May 2020 17:51:25 +0000
(18:51 +0100)
committer
Alex Bennée
<alex.bennee@linaro.org>
Fri, 15 May 2020 14:25:07 +0000
(15:25 +0100)
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>
tests/guest-debug/run-test.py
patch
|
blob
|
history
diff --git
a/tests/guest-debug/run-test.py
b/tests/guest-debug/run-test.py
index d9af9573b9ea58a6bca9543050ac09f6288fd11e..71c556905463ce236ca8d349d9e5796c077af74c 100755
(executable)
--- a/
tests/guest-debug/run-test.py
+++ b/
tests/guest-debug/run-test.py
@@
-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)