public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug testsuite/30154] New: FAIL: gdb.multi/multi-target-no-resumed.exp: inf_A=2: inf_B=1: send_gdb control C (timeout)
@ 2023-02-22 11:25 vries at gcc dot gnu.org
  2023-02-22 16:45 ` [Bug testsuite/30154] " vries at gcc dot gnu.org
  0 siblings, 1 reply; 2+ messages in thread
From: vries at gcc dot gnu.org @ 2023-02-22 11:25 UTC (permalink / raw)
  To: gdb-prs

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.

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

* [Bug testsuite/30154] FAIL: gdb.multi/multi-target-no-resumed.exp: inf_A=2: inf_B=1: send_gdb control C (timeout)
  2023-02-22 11:25 [Bug testsuite/30154] New: FAIL: gdb.multi/multi-target-no-resumed.exp: inf_A=2: inf_B=1: send_gdb control C (timeout) vries at gcc dot gnu.org
@ 2023-02-22 16:45 ` vries at gcc dot gnu.org
  0 siblings, 0 replies; 2+ messages in thread
From: vries at gcc dot gnu.org @ 2023-02-22 16:45 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #1 from Tom de Vries <vries at gcc dot gnu.org> ---
The problem with using sleep though is that it makes the test-case necessarily
longer.

After using taskset -c 4 to pin the entire test-case on an intel
Efficiency-core, I managed to make things pass reliably using
with_timeout_factor 3.

-- 
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:[~2023-02-22 16:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-22 11:25 [Bug testsuite/30154] New: FAIL: gdb.multi/multi-target-no-resumed.exp: inf_A=2: inf_B=1: send_gdb control C (timeout) vries at gcc dot gnu.org
2023-02-22 16:45 ` [Bug testsuite/30154] " 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).