diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 3fe36b3db4..8e603630c1 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2021-03-26 Andrew Burgess + + * gdb.cp/maint.exp (test_first_component): Run more tests with a + variable number of spaces, this removes the duplicate testing of + 'operator ->' which existed before. + 2021-03-26 Andrew Burgess * gdb.cp/gdb2384.cc (main): Change comments used for breakpoints. diff --git a/gdb/testsuite/gdb.cp/maint.exp b/gdb/testsuite/gdb.cp/maint.exp index 0f83b17371..358c1a4026 100644 --- a/gdb/testsuite/gdb.cp/maint.exp +++ b/gdb/testsuite/gdb.cp/maint.exp @@ -61,21 +61,22 @@ proc test_first_component {} { gdb_test_no_output "set complaints 1000" test_single_component "foo" - test_single_component "operator<<" - test_single_component "operator>>" - test_single_component "operator ->" - test_single_component "operator()" - test_single_component "operator>" - test_single_component "operator<" - test_single_component "operator ->" - test_single_component "operator ->" - test_single_component "foo()" - test_single_component "foo(int)" - test_single_component "foo(X::Y)" - test_single_component "foo(X::Y, A::B)" - test_single_component "foo(std::basic_streambuf >)" - test_single_component "operator>(X::Y)" + foreach spc [list "" " " " "] { + test_single_component "operator${spc}<<" + test_single_component "operator${spc}>>" + test_single_component "operator${spc}->" + test_single_component "operator${spc}()" + test_single_component "operator${spc}>" + test_single_component "operator${spc}<" + + test_single_component "foo${spc}()" + test_single_component "foo${spc}(int)" + test_single_component "foo${spc}(X::Y)" + test_single_component "foo${spc}(X::Y, A::B)" + test_single_component "foo${spc}(std::basic_streambuf >)" + test_single_component "operator>${spc}(X::Y)" + } # Operator names can show up in weird places.