[binutils-gdb] gdb/testsuite: don't include paths in test names

Andrew Burgess aburgess@sourceware.org
Thu Apr 15 20:35:08 GMT 2021


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=fd5c30cde5f33c67798581960e60461dc6585a46

commit fd5c30cde5f33c67798581960e60461dc6585a46
Author: Andrew Burgess <andrew.burgess@embecosm.com>
Date:   Thu Apr 15 21:32:57 2021 +0100

    gdb/testsuite: don't include paths in test names
    
    Give a test a proper name in order to avoid including a path in the
    test name.
    
    gdb/testsuite/ChangeLog:
    
            * gdb.python/py-parameter.exp: Give a test a proper name to avoid
            including a path in the test name.

Diff:
---
 gdb/testsuite/ChangeLog                   | 5 +++++
 gdb/testsuite/gdb.python/py-parameter.exp | 3 ++-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 9de1a44fd82..fdb02b724b7 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2021-04-15  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+	* gdb.python/py-parameter.exp: Give a test a proper name to avoid
+	including a path in the test name.
+
 2021-04-15  Simon Marchi  <simon.marchi@polymtl.ca>
 
 	* gdb.threads/fork-plus-threads.exp: Use foreach_with_prefix.
diff --git a/gdb/testsuite/gdb.python/py-parameter.exp b/gdb/testsuite/gdb.python/py-parameter.exp
index 5543b21f3ac..84ad70ee20e 100644
--- a/gdb/testsuite/gdb.python/py-parameter.exp
+++ b/gdb/testsuite/gdb.python/py-parameter.exp
@@ -78,7 +78,8 @@ gdb_test "show data-directory" \
     "check modified data-directory at the CLI"
 
 # Now lets set the data-directory back to what it was initially.
-gdb_test_no_output "set data-directory ${dd}"
+gdb_test_no_output "set data-directory ${dd}" \
+    "set data-directory back to its original value"
 
 # And check we see the restored value at CLI and from Python.
 gdb_test "show data-directory" \


More information about the Gdb-cvs mailing list