[gdb/testsuite] Add missing mi_skip_python_tests to py-mi-var-info-path-expression.exp
authorTom de Vries <tdevries@suse.de>
Wed, 22 May 2019 15:55:44 +0000 (17:55 +0200)
committerTom de Vries <tdevries@suse.de>
Wed, 22 May 2019 15:55:44 +0000 (17:55 +0200)
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.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.python/py-mi-var-info-path-expression.exp

index 62adbd7f2ca6f15350bd697c55ed22d27c4e844b..0110953f2e8c8136a6132d0725ed96684f0c27a0 100644 (file)
@@ -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.
index 86625458c3656c3e595560c15de265565771289a..02f0c9305ea87405d53bf0e57f060e09b58a8836 100644 (file)
@@ -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"