From 8e68731c8a4aecb3481803e91b9bcd2df182c135 Mon Sep 17 00:00:00 2001 From: Yao Qi Date: Fri, 3 Nov 2017 10:36:42 +0000 Subject: Skip gdb.python/py-thrhandle.exp if python is not enabled. gdb/testsuite: 2017-11-03 Yao Qi * gdb.python/py-thrhandle.exp: Skip it if python is not enabled. --- gdb/testsuite/gdb.python/py-thrhandle.exp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gdb/testsuite/gdb.python') 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" \ -- cgit v1.1