From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E6CB43858D33; Wed, 1 Mar 2023 11:08:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E6CB43858D33 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1677668905; bh=EisPSgwlY3Q6lRFHXWvmwjmf+4kTJtMTL1R8u/9YjPs=; h=From:To:Subject:Date:In-Reply-To:References:From; b=aofK31FhsW0n2iFOZIkPIJ2xbUocxUD2+pwh0HpOy81JsyxUWOr2k1EgBn+8v2ySe UcwXXFYAFa/eJckEtajqMf+Ena83WouvIVGWS+Bibp6eB+jG7B+bOsUwKMXIdvmdun bPivZJFQS/3/ik7P+QMPhlyxtyvk+M8lD6BXNF14= From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug testsuite/30185] FAIL: gdb.python/py-record-btrace.exp: function call: python print(c == c.next.prev) Date: Wed, 01 Mar 2023 11:08:25 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: testsuite X-Bugzilla-Version: 12.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vries at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D30185 --- Comment #2 from Tom de Vries --- If this the same root cause as the existing xfail, we can detect it using: ... diff --git a/gdb/testsuite/gdb.python/py-record-btrace.exp b/gdb/testsuite/gdb.p ython/py-record-btrace.exp index 703db0ce8e1..f62316b7b1c 100644 --- a/gdb/testsuite/gdb.python/py-record-btrace.exp +++ b/gdb/testsuite/gdb.python/py-record-btrace.exp @@ -101,6 +101,23 @@ with_test_prefix "prepare record" { return } + gdb_test_multiple "python print(len(insn))" "" { + -re -wrap "100" { + pass $gdb_test_name + } + -re -wrap "" { + if { $have_xfail } { + xfail $gdb_test_name + set got_xfail 1 + } else { + fail $gdb_test_name + } + } + } + if { $got_xfail } { + return + } + gdb_test_no_output "python call =3D r.function_call_history" gdb_test_no_output "python i =3D insn\[0\]" gdb_test_no_output "python c =3D call\[0\]" @@ -138,7 +155,6 @@ with_test_prefix "function call" { } with_test_prefix "list" { - gdb_test "python print(len(insn))" "100" gdb_test "python print(len(insn\[23:65\]))" "42" gdb_test "python print(insn\[17:\]\[2\].number)" "20" gdb_test "python print(i in insn)" "True" ... --=20 You are receiving this mail because: You are on the CC list for the bug.=