From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2205) id 3AF4B3858D29; Fri, 24 May 2024 07:35:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3AF4B3858D29 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1716536137; bh=qwNjBXBcYoBQoac4krQnPCYgCmy53lPp7DDkDQcMTG0=; h=From:To:Subject:Date:From; b=oQC74uD8d4Ehrx81B0aBmQUICHU/V8fLAmAg5Q6BRxtsNLs71eJ1o8/unP3mZ+oO8 1mC7vXmfBo9zWdUfQEVw9C+9FHCJiJVJgZEB3/NZcsYSIVhbHuh5QDWrP3ZrHHkjYx 50PRLt885l0NX94ae2jM/qyrZqvizP1cG4OZNwE0= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Tom de Vries To: gdb-cvs@sourceware.org Subject: [binutils-gdb] [gdb/testsuite] Add PR26286 kfail in gdb.threads/attach-many-short-lived-threads.exp X-Act-Checkin: binutils-gdb X-Git-Author: Tom de Vries X-Git-Refname: refs/heads/master X-Git-Oldrev: 78726a8b7cbe45e6197169580ea304fc2ea647da X-Git-Newrev: db7814f3e5f0df1647d62d95f70285d41ec7585f Message-Id: <20240524073537.3AF4B3858D29@sourceware.org> Date: Fri, 24 May 2024 07:35:37 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3Ddb7814f3e5f0= df1647d62d95f70285d41ec7585f commit db7814f3e5f0df1647d62d95f70285d41ec7585f Author: Tom de Vries Date: Fri May 24 09:36:52 2024 +0200 [gdb/testsuite] Add PR26286 kfail in gdb.threads/attach-many-short-live= d-threads.exp =20 When running test-case gdb.threads/attach-many-short-lived-threads.exp,= I run regularly into PR26286: ... (gdb) continue^M Continuing.^M [LWP ... exited]^M ... [LWP ... exited]^M ^M Program terminated with signal SIGTRAP, Trace/breakpoint trap.^M The program no longer exists.^M (gdb) FAIL: gdb.threads/attach-many-short-lived-threads.exp: iter 9: \ break at break_fn: 1 ... =20 Add a kfail for this, such that we have: ... (gdb) KFAIL: gdb.threads/attach-many-short-lived-threads.exp: iter 9: \ break at break_fn: 1 (PRMS: threads/26286) ... =20 Reviewed-By: Thiago Jung Bauermann =20 Tested on x86_64-linux. Diff: --- .../attach-many-short-lived-threads.exp | 25 ++++++++++++++++++= +++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/gdb/testsuite/gdb.threads/attach-many-short-lived-threads.exp = b/gdb/testsuite/gdb.threads/attach-many-short-lived-threads.exp index 6bee0ad2e2c..88834850042 100644 --- a/gdb/testsuite/gdb.threads/attach-many-short-lived-threads.exp +++ b/gdb/testsuite/gdb.threads/attach-many-short-lived-threads.exp @@ -141,9 +141,32 @@ proc test {} { # attach. sleep 2 =20 + set re_pr26286 \ + [multi_line \ + [string_to_regexp \ + "Program terminated with signal SIGTRAP, Trace/breakpoint trap."] \ + [string_to_regexp \ + "The program no longer exists."]] + set bps 3 + set exited 0 for {set bp 1} { $bp <=3D $bps } { incr bp } { - gdb_test "continue" "Breakpoint.*" "break at break_fn: $bp" + gdb_test_multiple "continue" "break at break_fn: $bp" { + -re -wrap "$re_pr26286" { + kfail threads/26286 $gdb_test_name + set exited 1 + } + -re -wrap "Breakpoint.*" { + pass $gdb_test_name + } + } + if { $exited } { + break + } + } + + if { $exited } { + return } =20 if {$attempt < $attempts} {