This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
[binutils-gdb] Skip gdb.python/py-thrhandle.exp if python is not enabled.
- From: Yao Qi <qiyao at sourceware dot org>
- To: gdb-cvs at sourceware dot org
- Date: 3 Nov 2017 10:41:33 -0000
- Subject: [binutils-gdb] Skip gdb.python/py-thrhandle.exp if python is not enabled.
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=8e68731c8a4aecb3481803e91b9bcd2df182c135
commit 8e68731c8a4aecb3481803e91b9bcd2df182c135
Author: Yao Qi <yao.qi@linaro.org>
Date: Fri Nov 3 10:36:42 2017 +0000
Skip gdb.python/py-thrhandle.exp if python is not enabled.
gdb/testsuite:
2017-11-03 Yao Qi <yao.qi@linaro.org>
* gdb.python/py-thrhandle.exp: Skip it if python is not
enabled.
Diff:
---
gdb/testsuite/ChangeLog | 5 +++++
gdb/testsuite/gdb.python/py-thrhandle.exp | 4 ++++
2 files changed, 9 insertions(+)
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 8c2fd90..c718747 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -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
diff --git a/gdb/testsuite/gdb.python/py-thrhandle.exp b/gdb/testsuite/gdb.python/py-thrhandle.exp
index 66b0472..fb01ca1 100644
--- a/gdb/testsuite/gdb.python/py-thrhandle.exp
+++ b/gdb/testsuite/gdb.python/py-thrhandle.exp
@@ -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" \