From 2078dbb210c7abc2c7ffee7aeefa1cc0ae375da0 Mon Sep 17 00:00:00 2001 From: Andrew Burgess Date: Tue, 25 Feb 2020 14:37:25 +0000 Subject: [PATCH] gdb/testsuite: Remove source file path from test name Having paths in test names makes comparing test results from two separate runs (in different directories) harder. gdb/testsuite/ChangeLog: * gdb.base/cached-source-file.exp: Avoid source file paths in test names. --- gdb/testsuite/ChangeLog | 5 +++++ gdb/testsuite/gdb.base/cached-source-file.exp | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 8ac38049b60..ccbb5be8fc1 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2020-02-25 Andrew Burgess + + * gdb.base/cached-source-file.exp: Avoid source file paths in test + names. + 2020-02-25 Tom de Vries PR go/18926 diff --git a/gdb/testsuite/gdb.base/cached-source-file.exp b/gdb/testsuite/gdb.base/cached-source-file.exp index 755416f25da..8457b1ee0c7 100644 --- a/gdb/testsuite/gdb.base/cached-source-file.exp +++ b/gdb/testsuite/gdb.base/cached-source-file.exp @@ -43,7 +43,7 @@ if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } { set bp_line [gdb_get_line_number "break-here" $srcfile] gdb_assert { [runto "$srcfile:$bp_line"] } \ - "run to $srcfile:$bp_line" + "run to break-here marker" # Do a "list" and check that the printed line matches the line of the # original source file. -- 2.30.2