]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Fix expected output of gdb.base/line65535.exp with dwarf-5
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Fri, 22 Jan 2021 17:55:04 +0000 (18:55 +0100)
committerBernd Edlinger <bernd.edlinger@hotmail.de>
Fri, 22 Jan 2021 21:55:52 +0000 (22:55 +0100)
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  <bernd.edlinger@hotmail.de>

* gdb.base/line65535.exp: Fix test expectation.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/line65535.exp

index c64f3bca1c23a0538f9739d0790f698dc94020d4..b9522c818f93d5f115f637251e081f2199a4030b 100644 (file)
@@ -1,3 +1,7 @@
+2021-01-22  Bernd Edlinger  <bernd.edlinger@hotmail.de>
+
+       * gdb.base/line65535.exp: Fix test expectation.
+
 2021-01-22  Simon Marchi  <simon.marchi@polymtl.ca>
 
        * lib/gdb.exp (gdb_test_multiple): Remove things related to test
index 921d1c18547a1e927242bc878c0b8eec3fb65738..861d5e3089c770dd80497bab5bfdb363fe13fed8 100644 (file)
@@ -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"