* [PATCH OBV] Skip gdb.python/py-thrhandle.exp if python is not enabled.
@ 2017-11-03 10:40 Yao Qi
0 siblings, 0 replies; only message in thread
From: Yao Qi @ 2017-11-03 10:40 UTC (permalink / raw)
To: gdb-patches
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 | 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" \
--
1.9.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-11-03 10:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-03 10:40 [PATCH OBV] Skip gdb.python/py-thrhandle.exp if python is not enabled Yao Qi
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).