gdb/testsuite: prefer gdb_test in gdb.dwarf2/calling-convention
authorLancelot SIX <lancelot.six@amd.com>
Wed, 25 May 2022 13:38:57 +0000 (14:38 +0100)
committerLancelot SIX <lancelot.six@amd.com>
Thu, 26 May 2022 08:37:11 +0000 (09:37 +0100)
commitbfcd7c2160fd145a9d7ff215ff28cdf5e406af5a
tree93e19309c17b94729e0da64dcc73b0b04b7472f7
parentf67741e172bf342291fe3abd2b395899ce6433a0
gdb/testsuite: prefer gdb_test in gdb.dwarf2/calling-convention

Since ed01945057c "Make gdb_test's question non-optional if specified",
if the question and response parameters are given to gdb_test, the
framework enforces that GDB asks the question.  Before this patch, tests
needed to use gdb_test_multiple to enforce this.

This patch updates the gdb.dwarf2/calling-convention.exp testcase to use
gdb_test to check that GDB asks a question.  This replaces the more
complicated gdb_test_multiple based implementation.

Tested on x86_64-gnu-linux.

Change-Id: I7216e822ca68f2727e0450970097d74c27c432fe
gdb/testsuite/gdb.dwarf2/calling-convention.exp