Skip gdb.python/py-thrhandle.exp if python is not enabled.
authorYao Qi <yao.qi@linaro.org>
Fri, 3 Nov 2017 10:36:42 +0000 (10:36 +0000)
committerYao Qi <yao.qi@linaro.org>
Fri, 3 Nov 2017 10:41:03 +0000 (10:41 +0000)
gdb/testsuite:

2017-11-03  Yao Qi  <yao.qi@linaro.org>

* gdb.python/py-thrhandle.exp: Skip it if python is not
enabled.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.python/py-thrhandle.exp

index 8c2fd90ea487777bd498566741f5035962ef1400..c718747ddda8fbaa901d147978cd1cce1ec78d25 100644 (file)
@@ -1,3 +1,8 @@
+2017-11-03  Yao Qi  <yao.qi@linaro.org>
+
+       * gdb.python/py-thrhandle.exp: Skip it if python is not
+       enabled.
+
 2017-10-31  Simon Marchi  <simon.marchi@polymtl.ca>
 
        * gdb.mi/mi-break.exp (test_breakpoint_commands): Test backtrace
index 66b04728e0300a74c46a8ce08425057b326f25c2..fb01ca16b8219df8581bf97941359ab477c1d318 100644 (file)
@@ -27,6 +27,10 @@ if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executab
 }
 
 clean_restart ${binfile}
+
+# Skip all tests if Python scripting is not enabled.
+if { [skip_python_tests] } { continue }
+
 runto_main
 
 gdb_test "break after_mc_barrier" \