diff options
author | Tom de Vries <tdevries@suse.de> | 2023-02-20 11:16:02 +0100 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2023-02-20 11:16:02 +0100 |
commit | 1bcaeecb7fd8a23f05033bc9a340696b685db17f (patch) | |
tree | 28b5ae5a4ce20d8b1eaa34f1cd1b32c99ce9c703 /gdb | |
parent | 13d4a4bd5a7a686d8d5473a4c93b7798de97f745 (diff) | |
download | binutils-1bcaeecb7fd8a23f05033bc9a340696b685db17f.zip binutils-1bcaeecb7fd8a23f05033bc9a340696b685db17f.tar.gz binutils-1bcaeecb7fd8a23f05033bc9a340696b685db17f.tar.bz2 |
[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>
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/testsuite/gdb.python/py-record-btrace.exp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.python/py-record-btrace.exp b/gdb/testsuite/gdb.python/py-record-btrace.exp index c055a88..703db0c 100644 --- a/gdb/testsuite/gdb.python/py-record-btrace.exp +++ b/gdb/testsuite/gdb.python/py-record-btrace.exp @@ -76,6 +76,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" @@ -83,7 +88,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 |