]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
[gdb/testsuite] Require allow_python_tests in gdb.cp/pretty-print.exp
authorTom de Vries <tdevries@suse.de>
Mon, 3 Aug 2026 18:36:35 +0000 (20:36 +0200)
committerTom de Vries <tdevries@suse.de>
Mon, 3 Aug 2026 18:36:35 +0000 (20:36 +0200)
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

index eaeffc6c5f6e496bb42e2d9aaf0469c9daf3f7b1..76c3b7156688a20f179b68dd65ad739a6041e121 100644 (file)
@@ -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 {}