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:45:34 +0000 (15:45 -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 9730658299bf16ec15ba87e46d6bd1701a5849c4..266645bd6ad6624889ece82f5c0369ca6be105fb 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