From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1726) id 7849C3858C74; Mon, 6 Jun 2022 11:40:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7849C3858C74 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Andrew Burgess To: gdb-cvs@sourceware.org Subject: [binutils-gdb] gdb/testsuite: add missing skip_python_tests call in py-doc-reformat.exp X-Act-Checkin: binutils-gdb X-Git-Author: Andrew Burgess X-Git-Refname: refs/heads/master X-Git-Oldrev: fdb5b467f97da3cdd1afef8bff17d68a9a919573 X-Git-Newrev: 772f4c2e98100e2bc3277bb7a214b8751c1cf968 Message-Id: <20220606114042.7849C3858C74@sourceware.org> Date: Mon, 6 Jun 2022 11:40:42 +0000 (GMT) X-BeenThere: gdb-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Jun 2022 11:40:42 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D772f4c2e9810= 0e2bc3277bb7a214b8751c1cf968 commit 772f4c2e98100e2bc3277bb7a214b8751c1cf968 Author: Andrew Burgess Date: Mon Jun 6 12:16:56 2022 +0100 gdb/testsuite: add missing skip_python_tests call in py-doc-reformat.exp =20 In commit: =20 commit 51e8dbe1fbe7d8955589703140ca5eba7b4f1bd7 Date: Mon May 16 19:26:54 2022 +0100 =20 gdb/python: improve formatting of help text for user defined comm= ands =20 the test that was added (gdb.python/py-doc-reformat.exp) was missing a call to skip_python_tests. As a result, this test would fail for any GDB built within Python support. =20 This commit adds a call to skip_python_tests. Diff: --- gdb/testsuite/gdb.python/py-doc-reformat.exp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gdb/testsuite/gdb.python/py-doc-reformat.exp b/gdb/testsuite/g= db.python/py-doc-reformat.exp index aae3939bd07..f0cfa278557 100644 --- a/gdb/testsuite/gdb.python/py-doc-reformat.exp +++ b/gdb/testsuite/gdb.python/py-doc-reformat.exp @@ -19,6 +19,10 @@ =20 load_lib gdb-python.exp =20 +# Check that Python is supported. +clean_restart +if { [skip_python_tests] } { continue } + # A global counter used to number the tests. set idx 0