public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb/gdb-10-branch] gdb/testsuite: add Python support check in gdb.python/flexible-array-member.exp
@ 2021-04-22 19:46 Simon Marchi
  0 siblings, 0 replies; only message in thread
From: Simon Marchi @ 2021-04-22 19:46 UTC (permalink / raw)
  To: gdb-cvs

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=28ba2379de62e01e2389c8d0b7ca903eca88365b

commit 28ba2379de62e01e2389c8d0b7ca903eca88365b
Author: Simon Marchi <simon.marchi@polymtl.ca>
Date:   Thu Apr 22 15:45:34 2021 -0400

    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

Diff:
---
 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 5069a84f5ef..effb3806baa 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -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
diff --git a/gdb/testsuite/gdb.python/flexible-array-member.exp b/gdb/testsuite/gdb.python/flexible-array-member.exp
index 3739c9a9e5c..349670cb7e7 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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-04-22 19:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-22 19:46 [binutils-gdb/gdb-10-branch] gdb/testsuite: add Python support check in gdb.python/flexible-array-member.exp Simon Marchi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).