fc4d8845bb
* gdb-container-rh-pkg.patch - Patches added (bsc#1207712): * gdb-testsuite-add-gdb.suse-debranding.exp.patch - Patches added (test-case fix): * gdb-testsuite-fix-gdb.dwarf2-dw2-dir-file-name.exp-w.patch - Patches added (fedora patch fixup): * fixup-gdb-test-dw2-aranges.patch - Patches added (master backports): * gdb-testsuite-add-xfail-in-gdb.arch-i386-pkru.exp.patch * gdb-testsuite-add-xfail-in-gdb.python-py-record-btra.patch * gdb-testsuite-factor-out-proc-linux_kernel_version.patch * gdb-testsuite-fix-gdb.base-infoline-reloc-main-from-.patch * gdb-testsuite-fix-gdb.base-nested-subp-2-3-.exp-with.patch * gdb-testsuite-fix-gdb.threads-schedlock.exp-on-fast-.patch * gdb-testsuite-handle-missing-.note.gnu-stack.patch * gdb-testsuite-simplify-gdb.arch-amd64-disp-step-avx..patch * gdb-testsuite-fix-gdb.threads-schedlock.exp-for-gcc-.patch * gdb-testsuite-add-xfail-case-in-gdb.python-py-record.patch * add-elfcompress_zstd.patch * binutils-gdb-support-zstd-compressed-debug-section.patch * fix-gdb-build-elf-support-check-lzstd.patch - Patches removed (dropped by fedora): * gdb-test-ivy-bridge.patch - Disable "BuildRequires: %{gcc}-fortran" for SLE-11. - Maintenance script qa-local.sh: * Add SLE-11 to configs. * Build with --no-verify. - Maintenance script qa.sh: * Add -sle11. OBS-URL: https://build.opensuse.org/package/show/devel:gcc/gdb?expand=0&rev=347
58 lines
1.9 KiB
Diff
58 lines
1.9 KiB
Diff
From 835a10f8541c7c4150098c82e097c4f606475cfa Mon Sep 17 00:00:00 2001
|
|
From: Tom de Vries <tdevries@suse.de>
|
|
Date: Mon, 20 Feb 2023 11:16:02 +0100
|
|
Subject: [PATCH] [gdb/testsuite] Add xfail case in
|
|
gdb.python/py-record-btrace.exp
|
|
|
|
I came across:
|
|
...
|
|
gdb) PASS: gdb.python/py-record-btrace.exp: prepare record: stepi 100
|
|
python insn = r.instruction_history^M
|
|
warning: Non-contiguous trace at instruction 1 (offset = 0x3e10).^M
|
|
(gdb) FAIL: gdb.python/py-record-btrace.exp: prepare record: python insn = r.i\
|
|
nstruction_history
|
|
...
|
|
|
|
I'm assuming it's the same root cause as for the already present XFAIL.
|
|
|
|
Fix this by recognizing above warning in the xfail regexp.
|
|
|
|
Tested on x86_64-linux, although sofar I was not able to trigger the warning
|
|
again.
|
|
|
|
Approved-By: Markus T. Metzger <markus.t.metzger@intel.com>
|
|
---
|
|
gdb/testsuite/gdb.python/py-record-btrace.exp | 7 ++++++-
|
|
1 file changed, 6 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/gdb/testsuite/gdb.python/py-record-btrace.exp b/gdb/testsuite/gdb.python/py-record-btrace.exp
|
|
index ca8740bc967..a930d17264d 100644
|
|
--- a/gdb/testsuite/gdb.python/py-record-btrace.exp
|
|
+++ b/gdb/testsuite/gdb.python/py-record-btrace.exp
|
|
@@ -86,6 +86,11 @@ with_test_prefix "prepare record" {
|
|
"warning: Decode error \\($nonl_re*\\) at instruction $decimal" \
|
|
"\\(offset = $hex, pc = $hex\\):" \
|
|
"$nonl_re*\\."]]
|
|
+ set xfail_re_2 \
|
|
+ [join \
|
|
+ [list \
|
|
+ "warning: Non-contiguous trace at instruction $decimal" \
|
|
+ "\\(offset = $hex\\)\\."]]
|
|
|
|
set got_xfail 0
|
|
set cmd "python insn = r.instruction_history"
|
|
@@ -93,7 +98,7 @@ with_test_prefix "prepare record" {
|
|
-re "^[string_to_regexp $cmd]\r\n$::gdb_prompt $" {
|
|
pass $gdb_test_name
|
|
}
|
|
- -re -wrap "$xfail_re" {
|
|
+ -re -wrap "($xfail_re|$xfail_re_2)" {
|
|
if { $have_xfail } {
|
|
xfail $gdb_test_name
|
|
set got_xfail 1
|
|
|
|
base-commit: f168a48adf97a36c88c65a075b42e6b7083063df
|
|
--
|
|
2.35.3
|
|
|