cp-completion-aliases.exp: Use test_gdb_complete_{unique,multiple}
authorPedro Alves <palves@redhat.com>
Wed, 27 May 2020 18:59:19 +0000 (19:59 +0100)
committerPedro Alves <palves@redhat.com>
Wed, 27 May 2020 18:59:19 +0000 (19:59 +0100)
commit636edd0018b72d67ee224e868fb277a658e9b984
tree9267b4ee6d4f08646586bf3ef22692c59adbbf5e
parentf0fbb768c223fd65385e2e2380fd04fde7121e5e
cp-completion-aliases.exp: Use test_gdb_complete_{unique,multiple}

gdb.linespec/cp-completion-aliases.exp is calling
test_gdb_complete_{tab,cmd}_unique and
test_gdb_complete_{tab,cmd}_multiple separately for each use case.
I.e., testing once for TAB completion and once for the "complete"
command.  There's no need to do that explicitly and separately, we
have wrapper procedures to do that for us.

gdb/testsuite/ChangeLog:
2020-05-27  Pedro Alves  <palves@redhat.com>

* gdb.linespec/cp-completion-aliases.exp: Remove readline_is_used
check.  Use test_gdb_complete_unique instead of
test_gdb_complete_tab_unique + test_gdb_complete_cmd_unique.  Use
test_gdb_complete_multiple instead of
test_gdb_complete_tab_multiple + test_gdb_complete_cmd_multiple.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.linespec/cp-completion-aliases.exp