From: Simon Marchi Date: Thu, 22 Apr 2021 19:45:34 +0000 (-0400) Subject: gdb/testsuite: add Python support check in gdb.python/flexible-array-member.exp X-Git-Tag: gdb-10.2-release~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=28ba2379de62e01e2389c8d0b7ca903eca88365b;p=thirdparty%2Fbinutils-gdb.git gdb/testsuite: add Python support check in gdb.python/flexible-array-member.exp We don't want to execute this test if Python support is not compiled in GDB, add the necessary check. gdb/testsuite/ChangeLog: * gdb.python/flexible-array-member.exp: Add check for Python support. Change-Id: I853b937d2a193a0bb216566bef1a35354264b1c5 --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 5069a84f5ef..effb3806baa 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2021-04-22 Simon Marchi + + * gdb.python/flexible-array-member.exp: Add check for Python + support. + 2021-04-22 Simon Marchi PR gdb/27757 diff --git a/gdb/testsuite/gdb.python/flexible-array-member.exp b/gdb/testsuite/gdb.python/flexible-array-member.exp index 3739c9a9e5c..349670cb7e7 100644 --- a/gdb/testsuite/gdb.python/flexible-array-member.exp +++ b/gdb/testsuite/gdb.python/flexible-array-member.exp @@ -22,6 +22,9 @@ if { [prepare_for_testing "failed to prepare" \ return } +# Skip all tests if Python scripting is not enabled. +if { [skip_python_tests] } { continue } + if { ![runto break_here] } { untested "could not run to break_here" return