public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] gdb/testsuite: don't include port numbers in test names
@ 2024-03-29 22:31 Andrew Burgess
  0 siblings, 0 replies; only message in thread
From: Andrew Burgess @ 2024-03-29 22:31 UTC (permalink / raw)
  To: gdb-cvs

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

commit b5c7f1fd7b9459bbd8b79e7e968aa56b42ff980c
Author: Andrew Burgess <aburgess@redhat.com>
Date:   Fri Mar 29 22:28:44 2024 +0000

    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.

Diff:
---
 gdb/testsuite/gdb.python/py-cmd-prompt.exp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gdb/testsuite/gdb.python/py-cmd-prompt.exp b/gdb/testsuite/gdb.python/py-cmd-prompt.exp
index a69211ce33d..ccb695f6638 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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-03-29 22:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-29 22:31 [binutils-gdb] gdb/testsuite: don't include port numbers in test names Andrew Burgess

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).