public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
From: "vries at gcc dot gnu.org" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug testsuite/30154] New: FAIL: gdb.multi/multi-target-no-resumed.exp: inf_A=2: inf_B=1: send_gdb control C (timeout)
Date: Wed, 22 Feb 2023 11:25:58 +0000	[thread overview]
Message-ID: <bug-30154-4717@http.sourceware.org/bugzilla/> (raw)

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

            Bug ID: 30154
           Summary: FAIL: gdb.multi/multi-target-no-resumed.exp: inf_A=2:
                    inf_B=1: send_gdb control C (timeout)
           Product: gdb
           Version: 12.1
            Status: NEW
          Severity: normal
          Priority: P2
         Component: testsuite
          Assignee: unassigned at sourceware dot org
          Reporter: vries at gcc dot gnu.org
  Target Milestone: ---

Setup:
- openSUSE Leap 15.4 x86_64 
- chroot with SLE-11 i586 packages (so, using tcl 8.5)
- gdb build of gdb-12-branch based package

I'm running into:
...
(gdb) PASS: gdb.multi/multi-target-no-resumed.exp: inf_A=2: inf_B=1: set the
thread to exit on resumption
continue^M
Continuing.^M
[Thread 0x2a8cfb70 (LWP 20395) exited]^M
PASS: gdb.multi/multi-target-no-resumed.exp: inf_A=2: inf_B=1: continue
^C^M
Thread 2.2 "multi-target-no" received signal SIGINT, Interrupt.^M
[Switching to Thread 20403.20404]^M
FAIL: gdb.multi/multi-target-no-resumed.exp: inf_A=2: inf_B=1: send_gdb control
C (timeout)
0x2a97548c in nanosleep () from /lib/libc.so.6^M
(gdb) info threads^M
...

This seems enough to make it pass:
...
diff --git a/gdb/testsuite/gdb.multi/multi-target-no-resumed.exp
b/gdb/testsuite/gdb.
multi/multi-target-no-resumed.exp
index a88a1704bf6..a9e1884f30f 100644
--- a/gdb/testsuite/gdb.multi/multi-target-no-resumed.exp
+++ b/gdb/testsuite/gdb.multi/multi-target-no-resumed.exp
@@ -58,6 +58,7 @@ proc test_no_resumed_infs {inf_A inf_B} {

     # Now stop the program (all targets).
     send_gdb "\003"
+    sleep 1
     gdb_test_multiple "" "send_gdb control C" {
        -re "received signal SIGINT.*$gdb_prompt $" {
            pass $gdb_test_name
...
in other words, telling expect to back off for a bit.

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

             reply	other threads:[~2023-02-22 11:25 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-22 11:25 vries at gcc dot gnu.org [this message]
2023-02-22 16:45 ` [Bug testsuite/30154] " vries at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-30154-4717@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=gdb-prs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).