[binutils-gdb] Add skip_fortran_tests to two Fortran testcases

Gary Benson gary@sourceware.org
Tue Oct 27 16:55:11 GMT 2020


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

commit 0bf21fbd79477304e7fd99869b823da19289e5ba
Author: Gary Benson <gbenson@redhat.com>
Date:   Tue Oct 27 16:54:38 2020 +0000

    Add skip_fortran_tests to two Fortran testcases
    
    This commit adds missing skip_fortran_tests checks to two Fortran
    testcases that did not have it.  It also fixes a copy-paste error
    in a comment.
    
    gdb/testsuite/ChangeLog:
    
            * gdb.mi/mi-fortran-modules.exp: Check skip_fortran_tests.
            * gdb.mi/mi-vla-fortran.exp: Likewise.  Also fix a comment.

Diff:
---
 gdb/testsuite/ChangeLog                     | 5 +++++
 gdb/testsuite/gdb.mi/mi-fortran-modules.exp | 2 ++
 gdb/testsuite/gdb.mi/mi-vla-fortran.exp     | 6 ++++--
 3 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 8635d17e11a..6f92df87a64 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2020-10-27  Gary Benson <gbenson@redhat.com>
+
+	* gdb.mi/mi-fortran-modules.exp: Check skip_fortran_tests.
+	* gdb.mi/mi-vla-fortran.exp: Likewise.  Also fix a comment.
+
 2020-10-27  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
 
 	* gdb.base/condbreak.exp: Update the completion tests to
diff --git a/gdb/testsuite/gdb.mi/mi-fortran-modules.exp b/gdb/testsuite/gdb.mi/mi-fortran-modules.exp
index de5657d2823..ae6cbd77fdf 100644
--- a/gdb/testsuite/gdb.mi/mi-fortran-modules.exp
+++ b/gdb/testsuite/gdb.mi/mi-fortran-modules.exp
@@ -15,6 +15,8 @@
 
 # Test -symbol-info-modules, listing Fortran modules.
 
+if { [skip_fortran_tests] } { return -1 }
+
 load_lib fortran.exp
 load_lib mi-support.exp
 set MIFLAGS "-i=mi"
diff --git a/gdb/testsuite/gdb.mi/mi-vla-fortran.exp b/gdb/testsuite/gdb.mi/mi-vla-fortran.exp
index e862725f48d..a62ec0f9f7f 100644
--- a/gdb/testsuite/gdb.mi/mi-vla-fortran.exp
+++ b/gdb/testsuite/gdb.mi/mi-vla-fortran.exp
@@ -13,8 +13,10 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-# Verify that, using the MI, we can evaluate a simple C Variable Length
-# Array (VLA).
+# Verify that, using the MI, we can evaluate a simple Fortran Variable
+# Length Array (VLA).
+
+if { [skip_fortran_tests] } { return -1 }
 
 load_lib mi-support.exp
 load_lib fortran.exp


More information about the Gdb-cvs mailing list