summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.dap
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2023-02-21 12:47:28 +0100
committerTom de Vries <tdevries@suse.de>2023-02-21 12:47:28 +0100
commitd720176596dd6495c258fa73c4029f009616ebd2 (patch)
tree4b06cad76d31077aaeb613e0d77ab4ac9321d5f6 /gdb/testsuite/gdb.dap
parent4c16e1ab6a6c696785f9915647f8fcef6bda5093 (diff)
downloadbinutils-gdb-d720176596dd6495c258fa73c4029f009616ebd2.tar.gz
[gdb/testsuite] Require python in gdb.dap/basic-dap.exp
When running test-case gdb.dap/basic-dap.exp with a gdb without python support, I run into: ... builtin_spawn gdb -nw -nx -iex set height 0 -iex set width 0 \ -data-directory data-directory -iex set debug dap-log-file dap.log.1 -q \ -i=dap >>> {"seq": 1, "type": "request", "command": "initialize"} Interpreter `dap' unrecognized ERROR: eof reading json header ... Fix this by requiring python in the test-case. Tested on x86_64-linux, both with a gdb without and with python.
Diffstat (limited to 'gdb/testsuite/gdb.dap')
-rw-r--r--gdb/testsuite/gdb.dap/basic-dap.exp2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.dap/basic-dap.exp b/gdb/testsuite/gdb.dap/basic-dap.exp
index 5303e943320..f4f25154770 100644
--- a/gdb/testsuite/gdb.dap/basic-dap.exp
+++ b/gdb/testsuite/gdb.dap/basic-dap.exp
@@ -15,6 +15,8 @@
# Basic DAP test.
+require allow_python_tests
+
load_lib dap-support.exp
standard_testfile