aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2021-04-19 07:16:34 -0600
committerTom Tromey <tromey@adacore.com>2021-04-19 07:16:34 -0600
commit392e0bcc0e4088ff6c31ed43a6232e709bf52751 (patch)
treece93c05df23b54f34971be809cc117fe546d9e1b
parent9a8041fd94b7b5c12cb802f87648cce954d18d2a (diff)
downloadfsf-binutils-gdb-392e0bcc0e4088ff6c31ed43a6232e709bf52751.zip
fsf-binutils-gdb-392e0bcc0e4088ff6c31ed43a6232e709bf52751.tar.gz
fsf-binutils-gdb-392e0bcc0e4088ff6c31ed43a6232e709bf52751.tar.bz2
Fix kfail patterns in inline-locals.exp
PR gdb/27742 points out that my recent change to print_variable_and_value caused a regression in inline-locals.exp. I can't reproduce this, but I came up with this patch based on the output shown in the bug. gdb/testsuite/ChangeLog 2021-04-19 Tom Tromey <tromey@adacore.com> PR gdb/27742: * gdb.opt/inline-locals.exp: Update kfail patterns.
-rw-r--r--gdb/testsuite/ChangeLog5
-rw-r--r--gdb/testsuite/gdb.opt/inline-locals.exp4
2 files changed, 7 insertions, 2 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 3e4a384..2bc845c 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2021-04-19 Tom Tromey <tromey@adacore.com>
+
+ PR gdb/27742:
+ * gdb.opt/inline-locals.exp: Update kfail patterns.
+
2021-04-17 Tom Tromey <tom@tromey.com>
* gdb.dwarf2/gdb-index-nodebug.exp: New file.
diff --git a/gdb/testsuite/gdb.opt/inline-locals.exp b/gdb/testsuite/gdb.opt/inline-locals.exp
index d0acb4a..ff9dd1b 100644
--- a/gdb/testsuite/gdb.opt/inline-locals.exp
+++ b/gdb/testsuite/gdb.opt/inline-locals.exp
@@ -45,7 +45,7 @@ if { ! $no_frames } {
gdb_test "info frame" ".*inlined into frame.*" "func1 inlined 2"
set pass_re "array = \\{0 <repeats 64 times>\\}"
set kfail_re [multi_line $pass_re \
- "array = {<optimized out> <repeats 64 times>}"]
+ "array = <optimized out>"]
gdb_test_multiple "info locals" "info locals above bar 2" {
-re -wrap $pass_re {
pass $gdb_test_name
@@ -94,7 +94,7 @@ if { ! $no_frames } {
gdb_test "info frame" ".*inlined into frame.*" "func1 inlined 3"
set pass_re "array = {$decimal, \[^\r\n\]*}"
set kfail_re [multi_line $pass_re \
- "array = {<optimized out> <repeats 64 times>}"]
+ "array = <optimized out>"]
gdb_test_multiple "info locals" "info locals above bar 3" {
-re -wrap $pass_re {
pass $gdb_test_name