]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdb/testsuite: don't include port numbers in test names
authorAndrew Burgess <aburgess@redhat.com>
Fri, 29 Mar 2024 22:28:44 +0000 (22:28 +0000)
committerAndrew Burgess <aburgess@redhat.com>
Fri, 29 Mar 2024 22:28:44 +0000 (22:28 +0000)
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.

gdb/testsuite/gdb.python/py-cmd-prompt.exp

index a69211ce33d3fef01d8ac6076d1b5e3fb1346e4e..ccb695f66383019eebc7aadb3c03699e6d03443f 100644 (file)
@@ -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