qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v1 01/10] tests/guest-debug: catch hanging guests


From: Philippe Mathieu-Daudé
Subject: Re: [PATCH v1 01/10] tests/guest-debug: catch hanging guests
Date: Thu, 21 May 2020 16:06:43 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0

On 5/13/20 7:51 PM, Alex Bennée wrote:
If gdb never actually connected with the guest we need to catch that
and clean-up after ourselves.

Signed-off-by: Alex Bennée <address@hidden>
Message-Id: <address@hidden>
---
  tests/guest-debug/run-test.py | 6 ++++++
  1 file changed, 6 insertions(+)

diff --git a/tests/guest-debug/run-test.py b/tests/guest-debug/run-test.py
index d9af9573b9e..71c55690546 100755
--- 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")

Maybe "Killing guest"?

Reviewed-by: Philippe Mathieu-Daudé <address@hidden>

+        inferior.kill()
+
      exit(result)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]