From: Tom de Vries <tdevries@suse.de>
To: gdb-patches@sourceware.org
Subject: [pushed] [gdb/testsuite] Require allow_python_tests in gdb.cp/pretty-print.exp
Date: Mon, 3 Aug 2026 20:36:50 +0200 [thread overview]
Message-ID: <20260803183650.2830038-1-tdevries@suse.de> (raw)
I build gdb without python support, and ran into:
...
(gdb) source $src/gdb/testsuite/gdb.cp/pretty-print.py
$src/gdb/testsuite/gdb.cp/pretty-print.py:18: Error in sourced command file:
Undefined command: "import". Try "help".
(gdb) ERROR: Undefined command "source $src/gdb/testsuite/gdb.cp/pretty-print.py".
...
Fix this by requiring allow_python_tests.
---
gdb/testsuite/gdb.cp/pretty-print.exp | 2 ++
1 file changed, 2 insertions(+)
diff --git a/gdb/testsuite/gdb.cp/pretty-print.exp b/gdb/testsuite/gdb.cp/pretty-print.exp
index eaeffc6c5f6..76c3b715668 100644
--- a/gdb/testsuite/gdb.cp/pretty-print.exp
+++ b/gdb/testsuite/gdb.cp/pretty-print.exp
@@ -16,6 +16,8 @@
# Print std::string::npos using c++ pretty-printer. Todo: convert this to a
# DWARF assembly test-case, such that the regression test also works for clang.
+require allow_python_tests
+
standard_testfile .cc
set opts {}
base-commit: a58e6081294fd3dde8fc7397f3a09f8c8a3f87aa
--
2.51.0
reply other threads:[~2026-08-03 18:39 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260803183650.2830038-1-tdevries@suse.de \
--to=tdevries@suse.de \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox