From 705646c074a73bb52ec732849238c66d862d2f9c Mon Sep 17 00:00:00 2001 From: Bernd Edlinger Date: Fri, 22 Jan 2021 18:55:04 +0100 Subject: [PATCH] Fix expected output of gdb.base/line65535.exp with dwarf-5 With gcc & binutils built from latest git revision this test case fails because the output of the break command changes and contains the full path name of the source file, while previously only the file name was printed. Fixed that by adjusting the test expectation. 2021-01-22 Bernd Edlinger * gdb.base/line65535.exp: Fix test expectation. --- gdb/testsuite/ChangeLog | 4 ++++ gdb/testsuite/gdb.base/line65535.exp | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index c64f3bca1c2..b9522c818f9 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2021-01-22 Bernd Edlinger + + * gdb.base/line65535.exp: Fix test expectation. + 2021-01-22 Simon Marchi * lib/gdb.exp (gdb_test_multiple): Remove things related to test diff --git a/gdb/testsuite/gdb.base/line65535.exp b/gdb/testsuite/gdb.base/line65535.exp index 921d1c18547..861d5e3089c 100644 --- a/gdb/testsuite/gdb.base/line65535.exp +++ b/gdb/testsuite/gdb.base/line65535.exp @@ -24,5 +24,5 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} { } gdb_test "break $srcfile:65535" \ - ".*Breakpoint 1 at .*: file $srcfile, line 65535\\..*" \ + ".*Breakpoint 1 at .*: file .*$srcfile, line 65535\\..*" \ "break at line 65535" -- 2.30.2