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
This commit is contained in:
Simon Marchi 2021-04-22 15:45:34 -04:00
parent e25d6d93c4
commit a87caa6d52
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
* gdb.python/flexible-array-member.exp: Add check for Python
support.
2021-04-22 Simon Marchi <simon.marchi@polymtl.ca> 2021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
PR gdb/27757 PR gdb/27757

View File

@ -22,6 +22,9 @@ if { [prepare_for_testing "failed to prepare" \
return return
} }
# Skip all tests if Python scripting is not enabled.
if { [skip_python_tests] } { continue }
if { ![runto break_here] } { if { ![runto break_here] } {
untested "could not run to break_here" untested "could not run to break_here"
return return