[pushed,gdb/testsuite] Fix regexp in gdb.dwarf2/dw2-inter-cu-error.exp

Message ID 20240827094947.18646-1-tdevries@suse.de
State Committed
Headers
Series [pushed,gdb/testsuite] Fix regexp in gdb.dwarf2/dw2-inter-cu-error.exp |

Checks

Context Check Description
linaro-tcwg-bot/tcwg_gdb_build--master-aarch64 warning Patch is already merged
linaro-tcwg-bot/tcwg_gdb_build--master-arm warning Patch is already merged

Commit Message

Tom de Vries Aug. 27, 2024, 9:49 a.m. UTC
  In commit b5070480d74 ("[gdb/symtab] Change DWARF_ERROR from Dwarf Error to
DWARF Error") I changed the dwarf error prefix, but failed to update test-case
gdb.dwarf2/dw2-inter-cu-error.exp.

Fix this by updating the corresponding regexp in the test-case.

Tested on x86_64-linux.
---
 gdb/testsuite/gdb.dwarf2/dw2-inter-cu-error.exp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


base-commit: fbf8e4c35c292620f8d25096b4341c3b5caa90ee
  

Patch

diff --git a/gdb/testsuite/gdb.dwarf2/dw2-inter-cu-error.exp b/gdb/testsuite/gdb.dwarf2/dw2-inter-cu-error.exp
index a628650f074..92ffcaeb515 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-inter-cu-error.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-inter-cu-error.exp
@@ -47,5 +47,5 @@  if [prepare_for_testing "failed to prepare" $testfile \
 }
 
 # Verify that GDB notices the null DIE.
-gdb_assert { [regexp "Dwarf Error: Unexpected null DIE" $gdb_file_cmd_msg] } \
+gdb_assert { [regexp "DWARF Error: Unexpected null DIE" $gdb_file_cmd_msg] } \
 	"Null DIE error missing"