From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 46198 invoked by alias); 22 May 2019 15:56:35 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 46187 invoked by uid 89); 22 May 2019 15:56:35 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-25.0 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,SPF_PASS autolearn=ham version=3.3.1 spammy=HX-Languages-Length:1229 X-HELO: mx1.suse.de Received: from mx2.suse.de (HELO mx1.suse.de) (195.135.220.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 22 May 2019 15:56:34 +0000 Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 638ABABE9 for ; Wed, 22 May 2019 15:56:32 +0000 (UTC) Date: Wed, 22 May 2019 15:56:00 -0000 From: Tom de Vries To: gdb-patches@sourceware.org Subject: [committed][gdb/testsuite] Add missing mi_skip_python_tests to py-mi-var-info-path-expression.exp Message-ID: <20190522155629.GA17027@delia> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) X-IsSubscribed: yes X-SW-Source: 2019-05/txt/msg00493.txt.bz2 Hi, Fix gdb.python/py-mi-var-info-path-expression.exp for a gdb build without python support. Committed to trunk. Thanks, - Tom [gdb/testsuite] Add missing mi_skip_python_tests to py-mi-var-info-path-expression.exp gdb/testsuite/ChangeLog: 2019-05-22 Tom de Vries 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/gdb.python/py-mi-var-info-path-expression.exp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gdb/testsuite/gdb.python/py-mi-var-info-path-expression.exp b/gdb/testsuite/gdb.python/py-mi-var-info-path-expression.exp index 86625458c3..02f0c9305e 100644 --- a/gdb/testsuite/gdb.python/py-mi-var-info-path-expression.exp +++ b/gdb/testsuite/gdb.python/py-mi-var-info-path-expression.exp @@ -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"