[committed][gdb/testsuite] Add missing mi_skip_python_tests to py-mi-var-info-path-expression.exp
Tom de Vries
tdevries@suse.de
Wed May 22 15:56:00 GMT 2019
Hi,
Fix gdb.python/py-mi-var-info-path-expression.exp for a gdb build without
python support.
Committed to trunk.
Thanks,
- Tom
[gdb/testsuite] Add missing mi_skip_python_tests to py-mi-var-info-path-expression.exp
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.
---
gdb/testsuite/gdb.python/py-mi-var-info-path-expression.exp | 3 +++
1 file changed, 3 insertions(+)
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 86625458c3..02f0c9305e 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"
More information about the Gdb-patches
mailing list