public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] [gdb/testsuite] Remove quit in gdb.arch/i386-mpx.exp
@ 2021-10-13  9:06 Tom de Vries
  0 siblings, 0 replies; only message in thread
From: Tom de Vries @ 2021-10-13  9:06 UTC (permalink / raw)
  To: gdb-cvs

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=7110a5d8e8523b6ecd1d97ab3936cdea03bf7b39

commit 7110a5d8e8523b6ecd1d97ab3936cdea03bf7b39
Author: Tom de Vries <tdevries@suse.de>
Date:   Wed Oct 13 11:06:36 2021 +0200

    [gdb/testsuite] Remove quit in gdb.arch/i386-mpx.exp
    
    When running test-case gdb.arch/i386-mpx.exp with target board
    native-gdbserver, I run into:
    ...
    (gdb) PASS: gdb.arch/i386-mpx.exp: verify size for bnd0
    Remote debugging from host ::1, port 42328^M
    quit^M
    A debugging session is active.^M
    ^M
            Inferior 1 [process 19679] will be killed.^M
    ^M
    Quit anyway? (y or n) monitor exit^M
    Please answer y or n.^M
    A debugging session is active.^M
    ^M
            Inferior 1 [process 19679] will be killed.^M
    ^M
    Quit anyway? (y or n) WARNING: Timed out waiting for EOF in server after monitor exit
    ...
    
    The problem is that the test-case sends a quit at the end (without verifying
    the result of this in any way):
    ...
    send_gdb "quit\n"
    ...
    
    Fix this by removing the quit.
    
    Tested on x86_64-linux.

Diff:
---
 gdb/testsuite/gdb.arch/i386-mpx.exp | 2 --
 1 file changed, 2 deletions(-)

diff --git a/gdb/testsuite/gdb.arch/i386-mpx.exp b/gdb/testsuite/gdb.arch/i386-mpx.exp
index 520fd10a240..c50685cc6de 100644
--- a/gdb/testsuite/gdb.arch/i386-mpx.exp
+++ b/gdb/testsuite/gdb.arch/i386-mpx.exp
@@ -134,5 +134,3 @@ if { [skip_python_tests] } { continue }
 # Verify if size is right
 set test_string ".*\\\: size 17.*"
 gdb_test "print /x \$bnd0 = {0x10, 0x20}" "$test_string" "verify size for bnd0"
-
-send_gdb "quit\n"


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-10-13  9:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-13  9:06 [binutils-gdb] [gdb/testsuite] Remove quit in gdb.arch/i386-mpx.exp Tom de Vries

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).