public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] [gdb/testsuite] Require python in gdb.dap/basic-dap.exp
@ 2023-02-21 11:47 Tom de Vries
  0 siblings, 0 replies; only message in thread
From: Tom de Vries @ 2023-02-21 11:47 UTC (permalink / raw)
  To: gdb-cvs

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=d720176596dd6495c258fa73c4029f009616ebd2

commit d720176596dd6495c258fa73c4029f009616ebd2
Author: Tom de Vries <tdevries@suse.de>
Date:   Tue Feb 21 12:47:28 2023 +0100

    [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.

Diff:
---
 gdb/testsuite/gdb.dap/basic-dap.exp | 2 ++
 1 file changed, 2 insertions(+)

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-02-21 11:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-21 11:47 [binutils-gdb] [gdb/testsuite] Require python in gdb.dap/basic-dap.exp Tom de Vries

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).