From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1879) id B9A0F3858C66; Tue, 31 Jan 2023 16:45:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B9A0F3858C66 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1675183547; bh=DDQFIU5w7ptKdG8RyeJZ+GSaUJhtmNKgXBgYv78pv/Y=; h=From:To:Subject:Date:From; b=tUEOtb9WNLzuJKcSQgIvLxsD+Ud9c/B5dpg0isbSEQxNbsg1Lzcmv65X2wYRS4Mb6 HEms67MVj04qyD8Pt+WqruGWJWnNyedlf9ALwptSVFq3jy2kpp/JdQW/x7wxOYfade mwplikx60/CIwmVnD92auePdDM9uZ79I4QzuchdY= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Simon Marchi To: gdb-cvs@sourceware.org Subject: [binutils-gdb] gdb/testsuite: adjust ensure_gdb_index to cooked_index_functions::dump changes X-Act-Checkin: binutils-gdb X-Git-Author: Simon Marchi X-Git-Refname: refs/heads/master X-Git-Oldrev: d8e88d10d8687d61ddb09fc0a0af563c43071555 X-Git-Newrev: 95cbab2bebf7e810eded3e16ae7e82b13f4d2493 Message-Id: <20230131164547.B9A0F3858C66@sourceware.org> Date: Tue, 31 Jan 2023 16:45:47 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D95cbab2bebf7= e810eded3e16ae7e82b13f4d2493 commit 95cbab2bebf7e810eded3e16ae7e82b13f4d2493 Author: Simon Marchi Date: Tue Jan 31 11:41:41 2023 -0500 gdb/testsuite: adjust ensure_gdb_index to cooked_index_functions::dump = changes =20 Following 7d82b08e9e0a ("gdb/dwarf: dump cooked index contents in cooked_index_functions::dump"), I see some failures like: =20 (gdb) mt print objfiles with-mf^M ^M Object file /home/smarchi/build/binutils-gdb/gdb/testsuite/outputs/= gdb.base/with-mf/with-mf: Objfile at 0x614000005040, bfd at 0x6120000e08c0= , 18 minsyms ^M ^M Cooked index in use:^M ^M ... (gdb) FAIL: gdb.base/with-mf.exp: check if index present =20 This is because the format of the "Cooked index in use" line changed slightly. Adjust ensure_gdb_index to expect the trailing colon. =20 Change-Id: If0a87575c02d8a0bc0d4b8ead540c234c62760f8 Diff: --- gdb/testsuite/lib/gdb.exp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp index 0201c102fa7..7f273bb91f7 100644 --- a/gdb/testsuite/lib/gdb.exp +++ b/gdb/testsuite/lib/gdb.exp @@ -8699,7 +8699,7 @@ proc ensure_gdb_index { binfile {style ""} } { set has_index 1 gdb_test_lines "" $gdb_test_name ".*" } - -re "\r\n(Cooked index in use|Psymtabs)(?=3D\r\n)" { + -re "\r\n(Cooked index in use:|Psymtabs)(?=3D\r\n)" { gdb_test_lines "" $gdb_test_name ".*" } -re ".gdb_index: faked for \"readnow\"" {