aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Burgess <aburgess@redhat.com>2024-03-29 22:28:44 +0000
committerAndrew Burgess <aburgess@redhat.com>2024-03-29 22:28:44 +0000
commitb5c7f1fd7b9459bbd8b79e7e968aa56b42ff980c (patch)
treeace79e3525262e612f40619b17eb218f0d063957
parent43f8b6e2578a76fd96bf08172b2ea6fdcaf6c2e4 (diff)
downloadbinutils-b5c7f1fd7b9459bbd8b79e7e968aa56b42ff980c.zip
binutils-b5c7f1fd7b9459bbd8b79e7e968aa56b42ff980c.tar.gz
binutils-b5c7f1fd7b9459bbd8b79e7e968aa56b42ff980c.tar.bz2
gdb/testsuite: don't include port numbers in test names
The gdb.python/py-cmd-prompt.exp script includes a test that has a gdbserver port number within a test name. As port numbers can change from one test run to the next (depending on what else is running on the machine at the time), this can make it hard to compare test results between runs. Give the test a specific name to avoid including the port number. There is no change in what is tested after this commit.
-rw-r--r--gdb/testsuite/gdb.python/py-cmd-prompt.exp3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.python/py-cmd-prompt.exp b/gdb/testsuite/gdb.python/py-cmd-prompt.exp
index a69211c..ccb695f 100644
--- a/gdb/testsuite/gdb.python/py-cmd-prompt.exp
+++ b/gdb/testsuite/gdb.python/py-cmd-prompt.exp
@@ -39,7 +39,8 @@ gdb_test_no_output "source $pyfile" "source the script"
set gdbserver [gdbserver_start "" [standard_output_file $binfile]]
set gdbserver_gdbport [lindex $gdbserver 1]
-gdb_test_no_output "python the_listener.port = '${gdbserver_gdbport}'"
+gdb_test_no_output "python the_listener.port = '${gdbserver_gdbport}'" \
+ "set the_listener.port value"
gdb_run_cmd