aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.python/flexible-array-member.exp
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2021-04-22 15:45:34 -0400
committerSimon Marchi <simon.marchi@polymtl.ca>2021-04-22 15:45:34 -0400
commita87caa6d523e573ab71694233a7501c6b5b5b9f7 (patch)
tree38706503a4f60a1ffce11bd0872ac9462492a03e /gdb/testsuite/gdb.python/flexible-array-member.exp
parente25d6d93c4a0d597da2521c2c38cb1ce6e51feb8 (diff)
downloadgdb-a87caa6d523e573ab71694233a7501c6b5b5b9f7.zip
gdb-a87caa6d523e573ab71694233a7501c6b5b5b9f7.tar.gz
gdb-a87caa6d523e573ab71694233a7501c6b5b5b9f7.tar.bz2
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
Diffstat (limited to 'gdb/testsuite/gdb.python/flexible-array-member.exp')
-rw-r--r--gdb/testsuite/gdb.python/flexible-array-member.exp3
1 files changed, 3 insertions, 0 deletions
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