diff options
author | Tom de Vries <tdevries@suse.de> | 2021-10-11 12:21:00 +0200 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2021-10-11 12:21:00 +0200 |
commit | 4f69f0a21ef0a22e5e7d82ba271d6a7330469fb1 (patch) | |
tree | 0fccf8501275ae33c084e503c3ff97315a020b7a /gdb/testsuite/gdb.base/valgrind-infcall.exp | |
parent | b6fca8a3d501a4dca0726fe8b89d18d9ba5780c6 (diff) | |
download | gdb-4f69f0a21ef0a22e5e7d82ba271d6a7330469fb1.zip gdb-4f69f0a21ef0a22e5e7d82ba271d6a7330469fb1.tar.gz gdb-4f69f0a21ef0a22e5e7d82ba271d6a7330469fb1.tar.bz2 |
[gdb/testsuite] Add proc require in lib/gdb.exp
Add a new proc require in lib/gdb.exp, and use it to shorten:
...
if { [gdb_skip_xml_test] } {
# Valgrind gdbserver requires gdb with xml support.
untested "missing xml support"
return 0
}
...
into:
...
require gdb_skip_xml_test 0
...
Tested on x86_64-linux, both with and without a trigger patch that forces
gdb_skip_xml_test to return 1.
Diffstat (limited to 'gdb/testsuite/gdb.base/valgrind-infcall.exp')
-rw-r--r-- | gdb/testsuite/gdb.base/valgrind-infcall.exp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/gdb/testsuite/gdb.base/valgrind-infcall.exp b/gdb/testsuite/gdb.base/valgrind-infcall.exp index 9f49a32..68bc1b8 100644 --- a/gdb/testsuite/gdb.base/valgrind-infcall.exp +++ b/gdb/testsuite/gdb.base/valgrind-infcall.exp @@ -13,11 +13,8 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -if { [gdb_skip_xml_test] } { - # Valgrind gdbserver requires gdb with xml support. - untested "missing xml support" - return 0 -} +# Valgrind gdbserver requires gdb with xml support. +require gdb_skip_xml_test 0 load_lib valgrind.exp |