Commit b03e4fff authored by Alex Bennée's avatar Alex Bennée
Browse files

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: default avatarAlex Bennée <alex.bennee@linaro.org>
Message-Id: <20200513175134.19619-2-alex.bennee@linaro.org>
parent 2478b8ec
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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)