]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb/testsuite: fix duplicate test names in gdb.trace/circ.exp
authorAndrew Burgess <aburgess@redhat.com>
Thu, 1 Feb 2024 12:57:11 +0000 (12:57 +0000)
committerAndrew Burgess <aburgess@redhat.com>
Tue, 5 Mar 2024 16:35:23 +0000 (16:35 +0000)
commitf08311ceb1ba4e19eab7070e676416337455a074
treee235e6651ace9eb96b81643b15f87db0ddd18e58
parentb208792b31cf194f069af034290b8df6d3ee27c3
gdb/testsuite: fix duplicate test names in gdb.trace/circ.exp

This fixes some duplicate test names in gdb.trace/circ.exp when using
native-gdbserver and native-extended-gdbserver boards.

In this test we set the trace buffer size twice.  The same test name
was used each time the size was adjusted.

I've fixed this issue by:

  1. Creating a new proc, set_trace_buffer_size, which factors out the
  code to change the buffer size, and uses test names based on the
  size we're setting the buffer too,

  2. Calling the new proc each time we want to adjust the buffer size.

After this the duplicate test names are resolved.  There should be no
change in what is tested after this commit.
gdb/testsuite/gdb.trace/circ.exp