From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2205) id 9ED7A384B11C; Wed, 24 Apr 2024 13:36:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9ED7A384B11C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1713965763; bh=73TWoG4iWdgrzaBTjZO+5/GknBFF64saK929Tu4UNvY=; h=From:To:Subject:Date:From; b=qiDiKS+qNmcrcyox/J3GLK4cSaIEpREYgAQwf4DPYv3iKUEKctVvm3KjZNN4vUUAg 4yIYawV/c7wKpksaSiaBA6C2cp56UJyzCdgbvfkNEe++9TdPMnLTNAFn8CCFCUZI+D 9GewwL8tJ3foyOaWDwlVHx3zx44dqJfZvkFFrjAs= 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] Fix gdb.threads/threadcrash.exp with glibc debuginfo X-Act-Checkin: binutils-gdb X-Git-Author: Tom de Vries X-Git-Refname: refs/heads/master X-Git-Oldrev: 3b3e2090118966e3b885ae578440e380dc90e648 X-Git-Newrev: e6a0a281a0bf93bd22247bcd1d68b303dc657845 Message-Id: <20240424133603.9ED7A384B11C@sourceware.org> Date: Wed, 24 Apr 2024 13:36:03 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3De6a0a281a0bf= 93bd22247bcd1d68b303dc657845 commit e6a0a281a0bf93bd22247bcd1d68b303dc657845 Author: Tom de Vries Date: Wed Apr 24 15:36:02 2024 +0200 [gdb/testsuite] Fix gdb.threads/threadcrash.exp with glibc debuginfo =20 After installing glibc debuginfo, I ran into: ... FAIL: gdb.threads/threadcrash.exp: test_live_inferior: \ $thread_count =3D=3D [llength $test_list] ... =20 This happens because the clause: ... -re "^\r\n${hs}main$hs$eol" { ... which is intended to match only: ... #1 in main () at threadcrash.c:423^M ... also matches "remaining" in: ... #1 in __GI___nanosleep (requested_time=3D, remaining=3D) at \ nanosleep.c:27^M ... =20 Fix this by checking for "in main" instead. =20 Tested on x86_64-linux. Diff: --- gdb/testsuite/gdb.threads/threadcrash.exp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdb/testsuite/gdb.threads/threadcrash.exp b/gdb/testsuite/gdb.= threads/threadcrash.exp index c72ce73fd6d..ffbfd83942c 100644 --- a/gdb/testsuite/gdb.threads/threadcrash.exp +++ b/gdb/testsuite/gdb.threads/threadcrash.exp @@ -74,7 +74,7 @@ proc thread_apply_all {} { lappend test_list 6 exp_continue } - -re "^\r\n${hs}main$hs$eol" { + -re "^\r\n${hs}in main$hs$eol" { lappend test_list 7 exp_continue }