public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug testsuite/27396] New: setup_xfail leaks into next test-case
@ 2021-02-11 10:52 vries at gcc dot gnu.org
  2021-02-11 11:06 ` [Bug testsuite/27396] " vries at gcc dot gnu.org
  0 siblings, 1 reply; 2+ messages in thread
From: vries at gcc dot gnu.org @ 2021-02-11 10:52 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=27396

            Bug ID: 27396
           Summary: setup_xfail leaks into next test-case
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: testsuite
          Assignee: unassigned at sourceware dot org
          Reporter: vries at gcc dot gnu.org
  Target Milestone: ---

When running the testsuite with target board, unix/gdb:debug_flags=-gdwarf-5 I
first run into:
...
(gdb) PASS: gdb.cp/temargs.exp: test value of I in templ_m
info addr I^M
ERROR: GDB process no longer exists
GDB process exited with wait status 16930 exp19 0 0 CHILDKILLED SIGABRT SIGABRT
UNRESOLVED: gdb.cp/temargs.exp: test address of I in templ_m
DUPLICATE: gdb.cp/temargs.exp: test address of I in templ_m
ERROR: Couldn't send print P == &a_global to GDB.
ERROR: can not find channel named "exp19"
...
and then in the next test-case:
...
(gdb) set multiple-symbols ask^M
(gdb) XPASS: gdb.cp/templates.exp: set multiple-symbols ask (PRMS gcc/49546)
...

It seems the setup_xfail executed in temargs.exp:
...
if $have_older_template_gcc { setup_xfail "*-*-*"
} else { setup_xfail gcc/49546 "*-*-*" }
gdb_test "print F" { = \(void \(\*\)\(int\)\) 0x[0-9a-f]+ <S3::m\(int\)>} \
         "test value of F in k3_m"
...
is effective here in templates.exp:
...
    gdb_test_no_output "set multiple-symbols ask"
...

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug testsuite/27396] setup_xfail leaks into next test-case
  2021-02-11 10:52 [Bug testsuite/27396] New: setup_xfail leaks into next test-case vries at gcc dot gnu.org
@ 2021-02-11 11:06 ` vries at gcc dot gnu.org
  0 siblings, 0 replies; 2+ messages in thread
From: vries at gcc dot gnu.org @ 2021-02-11 11:06 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=27396

--- Comment #1 from Tom de Vries <vries at gcc dot gnu.org> ---
This fixes it:
...
diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp
index 60f84d22aad..b1644e0c3b6 100644
--- a/gdb/testsuite/lib/gdb.exp
+++ b/gdb/testsuite/lib/gdb.exp
@@ -5633,6 +5633,7 @@ proc gdb_finish { } {
     set gdb_finish_hooks [list]

     gdb_cleanup_globals
+    clear_xfail *-*-*
 }

 global debug_format
...

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-02-11 11:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-11 10:52 [Bug testsuite/27396] New: setup_xfail leaks into next test-case vries at gcc dot gnu.org
2021-02-11 11:06 ` [Bug testsuite/27396] " vries at gcc dot gnu.org

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).