diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2022-04-21 15:05:32 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2022-04-21 15:05:32 -0400 |
commit | 0b84fbd54ee44cc88fd95cf1993f0e704c4d78e2 (patch) | |
tree | 16aa54b76470e70abaeae3fac9932beaeee37034 /gdb/testsuite/gdb.mi/mi-var-rtti.exp | |
parent | 31de881f8f9a03499002d28ff42286b79c24a97d (diff) | |
download | gdb-0b84fbd54ee44cc88fd95cf1993f0e704c4d78e2.zip gdb-0b84fbd54ee44cc88fd95cf1993f0e704c4d78e2.tar.gz gdb-0b84fbd54ee44cc88fd95cf1993f0e704c4d78e2.tar.bz2 |
gdb/testsuite: fix "set temporary breakpoint" DUPLICATEs
Commit c67f4e538 ("gdb/testsuite: make gdb.ada/mi_prot.exp stop at
expected location") introduced some DUPLICATEs in MI tests using
mi_continue_to_line, for example:
DUPLICATE: gdb.ada/mi_ref_changeable.exp: mi_continue_to_line: set temporary breakpoint
These test names were previously differentiated by the location passed
to mi_continue_to_line. Since the location can contain a path, that
commit removed the location from the test name, in favor of a hardcoded
string "set temporary breakpoint", hence removing the differentiator.
mi_continue_to_line receives a "test" parameter, containing a test
name. Add a "with_test_prefix" with that name, so that all tests
recorded during mi_continue_to_line have this in their name.
mi_continue_to_line passes that "test" string to mi_get_stop_line, that
is a bit superfluous. mi_get_stop_line only uses that string in case of
failures (it doesn't record a pass if everything goes fine). Since it's
not crucial, just remove it, and adjust all callers.
Adjust three gdb.mi/mi-var-*.exp tests to use prefixes to differentiate
the multiple calls to mi_run_inline_test (which calls
mi_continue_to_line).
Change-Id: I511c6caa70499f8657b1cde37d71068d74d56a74
Diffstat (limited to 'gdb/testsuite/gdb.mi/mi-var-rtti.exp')
-rw-r--r-- | gdb/testsuite/gdb.mi/mi-var-rtti.exp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.mi/mi-var-rtti.exp b/gdb/testsuite/gdb.mi/mi-var-rtti.exp index 84b1a42..0015d23 100644 --- a/gdb/testsuite/gdb.mi/mi-var-rtti.exp +++ b/gdb/testsuite/gdb.mi/mi-var-rtti.exp @@ -119,7 +119,7 @@ set inline_tests { skip_type_update_when_not_use_rtti } -foreach inline_test $inline_tests { +foreach_with_prefix inline_test $inline_tests { if { [mi_run_inline_test $inline_test] < 0 } { return -1 } |