From: Bernd Edlinger Date: Fri, 22 Jan 2021 17:55:04 +0000 (+0100) Subject: Fix expected output of gdb.base/line65535.exp with dwarf-5 X-Git-Tag: binutils-2_37~2202 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=705646c074a73bb52ec732849238c66d862d2f9c;p=thirdparty%2Fbinutils-gdb.git 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. --- 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"