]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb/testsuite: avoid duplicate test names in gdb.dwarf2/dw2-zero-range.exp (and more)
authorSimon Marchi <simon.marchi@efficios.com>
Fri, 19 Jan 2024 21:15:41 +0000 (21:15 +0000)
committerSimon Marchi <simon.marchi@polymtl.ca>
Mon, 22 Jan 2024 19:54:38 +0000 (14:54 -0500)
commit3a49585ad58fb11ec4e9a1d6adaaca47ddd84cd5
tree147b0fdfc1073f2c5f749753fc55d948e45a5a05
parentc37ad9ea1618969273b3a3b75278b0e96bb63a78
gdb/testsuite: avoid duplicate test names in gdb.dwarf2/dw2-zero-range.exp (and more)

Tom Tromey noticed that dw2-zero-range.exp reported a duplicate test
name.  This happens because have_index calls get_index_type with the
default test name.  Refactor the test to avoid this, while cleaning a
few other things, the most important being:

 - factor out the relocated and unrelocated parts in their own procs
 - give different names to generated binaries in different variations,
   such that all binaries are left in the test output directory (this
   makes it easier to debug a specific variation)

Change-Id: I7cdf7a344834852fbb035d7e0434559eab6b1e94
gdb/testsuite/gdb.dwarf2/dw2-zero-range.exp