From a87caa6d523e573ab71694233a7501c6b5b5b9f7 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Thu, 22 Apr 2021 15:45:34 -0400 Subject: 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 --- gdb/testsuite/ChangeLog | 5 +++++ gdb/testsuite/gdb.python/flexible-array-member.exp | 3 +++ 2 files changed, 8 insertions(+) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 9730658..266645b 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,5 +1,10 @@ 2021-04-22 Simon Marchi + * gdb.python/flexible-array-member.exp: Add check for Python + support. + +2021-04-22 Simon Marchi + PR gdb/27757 * gdb.python/flexible-array-member.c: New test. * gdb.python/flexible-array-member.exp: New test. diff --git a/gdb/testsuite/gdb.python/flexible-array-member.exp b/gdb/testsuite/gdb.python/flexible-array-member.exp index 3739c9a..349670c 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 -- cgit v1.1