From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1805) id AC0523858403; Tue, 18 Oct 2022 13:24:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AC0523858403 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1666099482; bh=tbJX4SQuHFJX5/KpXaHNZGZOp1AHaxd7zjYQUiNeSMM=; h=From:To:Subject:Date:From; b=fu1FsjJbkTU0xKsDpf9aRIEG/aN9j4JpNv39oQvPBssZvnEGnmBksuehzZFpxGkBG UW0C2UvUTF60TfJ+FJ4ugZjrSZZymA+VXsAtuJn7bTlJ9o3sFl2A3SEPK8mg8H3bsX 3i6RK4nxG+k3ZyXFxVAzYCrycjixOTBRY4kBqb/4= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Markus Metzger To: gdb-cvs@sourceware.org Subject: [binutils-gdb] gdb, testsuite: extend gdb_test_multiple checks X-Act-Checkin: binutils-gdb X-Git-Author: Markus Metzger X-Git-Refname: refs/heads/master X-Git-Oldrev: 32e876a80f015281cd7fca46e8a589c6cf132d11 X-Git-Newrev: 44288716537103644dfdd0c72f03be737cafb768 Message-Id: <20221018132442.AC0523858403@sourceware.org> Date: Tue, 18 Oct 2022 13:24:42 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D442887165371= 03644dfdd0c72f03be737cafb768 commit 44288716537103644dfdd0c72f03be737cafb768 Author: Markus Metzger Date: Fri Feb 18 12:16:33 2022 +0100 gdb, testsuite: extend gdb_test_multiple checks =20 Check for =20 warning: Corrupted shared library list =20 and for =20 Invalid cast. warning: Probes-based dynamic linker interface failed. Reverting to original interface. =20 in gdb_test_multiple. Diff: --- gdb/testsuite/lib/gdb.exp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp index bfa9fec628e..36bcfacfdd0 100644 --- a/gdb/testsuite/lib/gdb.exp +++ b/gdb/testsuite/lib/gdb.exp @@ -1188,6 +1188,14 @@ proc gdb_test_multiple { command message args } { } set result -1 } + -re "Corrupted shared library list.*$prompt_regexp" { + fail "$message (shared library list corrupted)" + set result -1 + } + -re "Invalid cast\.\r\nwarning: Probes-based dynamic linker interface fai= led.*$prompt_regexp" { + fail "$message (probes interface failure)" + set result -1 + } } append code $processed_code