From 392e0bcc0e4088ff6c31ed43a6232e709bf52751 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Mon, 19 Apr 2021 07:16:34 -0600 Subject: [PATCH] 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 PR gdb/27742: * gdb.opt/inline-locals.exp: Update kfail patterns. --- gdb/testsuite/ChangeLog | 5 +++++ gdb/testsuite/gdb.opt/inline-locals.exp | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 3e4a384bd95..2bc845c0275 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2021-04-19 Tom Tromey + + PR gdb/27742: + * gdb.opt/inline-locals.exp: Update kfail patterns. + 2021-04-17 Tom Tromey * 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 d0acb4ae8b5..ff9dd1b49ed 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 \\}" set kfail_re [multi_line $pass_re \ - "array = { }"] + "array = "] 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 = { }"] + "array = "] gdb_test_multiple "info locals" "info locals above bar 3" { -re -wrap $pass_re { pass $gdb_test_name -- 2.30.2