public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] [gdb/testsuite] Add missing mi_skip_python_tests to py-mi-var-info-path-expression.exp
@ 2019-05-22 15:55 Tom de Vries
0 siblings, 0 replies; only message in thread
From: Tom de Vries @ 2019-05-22 15:55 UTC (permalink / raw)
To: gdb-cvs
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=e7fe496b1b8c0dfc44876f86131f756b424d4e70
commit e7fe496b1b8c0dfc44876f86131f756b424d4e70
Author: Tom de Vries <tdevries@suse.de>
Date: Wed May 22 17:55:44 2019 +0200
[gdb/testsuite] Add missing mi_skip_python_tests to py-mi-var-info-path-expression.exp
Fix gdb.python/py-mi-var-info-path-expression.exp for a gdb build without
python support.
gdb/testsuite/ChangeLog:
2019-05-22 Tom de Vries <tdevries@suse.de>
PR testsuite/24586
* gdb.python/py-mi-var-info-path-expression.exp: Call
mi_skip_python_tests to check if python is supported.
Diff:
---
gdb/testsuite/ChangeLog | 6 ++++++
gdb/testsuite/gdb.python/py-mi-var-info-path-expression.exp | 3 +++
2 files changed, 9 insertions(+)
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 62adbd7..0110953 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2019-05-22 Tom de Vries <tdevries@suse.de>
+
+ PR testsuite/24586
+ * gdb.python/py-mi-var-info-path-expression.exp: Call
+ mi_skip_python_tests to check if python is supported.
+
2019-05-22 Alan Hayward <alan.hayward@arm.com>
* gdb.arch/aarch64-pauth.c: New test.
diff --git a/gdb/testsuite/gdb.python/py-mi-var-info-path-expression.exp b/gdb/testsuite/gdb.python/py-mi-var-info-path-expression.exp
index 8662545..02f0c93 100644
--- a/gdb/testsuite/gdb.python/py-mi-var-info-path-expression.exp
+++ b/gdb/testsuite/gdb.python/py-mi-var-info-path-expression.exp
@@ -32,6 +32,9 @@ if {[gdb_compile "$srcdir/$subdir/$srcfile" $binfile executable {debug}] != "" }
return -1
}
+# Skip all tests if Python scripting is not enabled.
+if { [mi_skip_python_tests] } { continue }
+
mi_gdb_test "source ${srcdir}/${subdir}/${testfile}.py" \
".*\\^done" \
"load python file"
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-05-22 15:55 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-22 15:55 [binutils-gdb] [gdb/testsuite] Add missing mi_skip_python_tests to py-mi-var-info-path-expression.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).