]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdb/testsuite: add Python support check in gdb.python/flexible-array-member.exp
authorSimon Marchi <simon.marchi@polymtl.ca>
Thu, 22 Apr 2021 19:45:34 +0000 (15:45 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Thu, 22 Apr 2021 19:46:17 +0000 (15:46 -0400)
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
gdb/testsuite/gdb.python/flexible-array-member.exp

index 5069a84f5eff3214a9ae263b09c1b3633c92abd1..effb3806baa0060d8a8f8c5d8f95f5c5fb6bc0a0 100644 (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>
 
        PR gdb/27757
index 3739c9a9e5c0d49f2b17d2452b42686abeacefc1..349670cb7e722b7f28935feda64b147e0d16859e 100644 (file)
@@ -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