}
# It requires fortran.
-require !skip_fortran_tests
+require allow_fortran_tests
standard_testfile .S
# Testing GDB's implementation of ALLOCATED keyword.
-require !skip_fortran_tests
+require allow_fortran_tests
standard_testfile ".f90"
load_lib fortran.exp
# This file is part of the gdb testsuite. It contains test to ensure that
# array bounds accept LONGEST.
-require !skip_fortran_tests
+require allow_fortran_tests
set testfile "array-bounds-high"
standard_testfile .f90
# This file is part of the gdb testsuite. It contains test to ensure that
# array bounds accept LONGEST.
-require !skip_fortran_tests
+require allow_fortran_tests
set testfile "array-bounds"
standard_testfile .f90
# This file is part of the gdb testsuite. It contains test for printing
# the elements of an array which is passed as pointer to a subroutine.
-require !skip_fortran_tests
+require allow_fortran_tests
standard_testfile .f
# Test the printing of element indices in Fortran arrays.
-require !skip_fortran_tests
+require allow_fortran_tests
load_lib fortran.exp
# This file is part of the gdb testsuite. It contains test to ensure that
# array bounds accept LONGEST.
-require !skip_fortran_tests
+require allow_fortran_tests
standard_testfile .f90
load_lib fortran.exp
# Test the detection and printing of repeated elements in Fortran arrays.
-require !skip_fortran_tests
+require allow_fortran_tests
load_lib fortran.exp
# Test invalid element and slice array accesses.
-require !skip_fortran_tests
+require allow_fortran_tests
standard_testfile ".f90"
load_lib fortran.exp
# Create a slice of an array, then take a slice of that slice.
-require !skip_fortran_tests
+require allow_fortran_tests
standard_testfile ".f90"
load_lib fortran.exp
# debug information) matches the size of the slice manually extracted
# by GDB.
-require !skip_fortran_tests
+require allow_fortran_tests
# This test relies on output from the inferior.
if [target_info exists gdb,noinferiorio] {
# Testing GDB's implementation of ASSOCIATED keyword.
-require !skip_fortran_tests
+require allow_fortran_tests
standard_testfile ".f90"
load_lib fortran.exp
# Testing GDB's implementation of ASSUMED RANK arrays.
-require !skip_fortran_tests
+require allow_fortran_tests
standard_testfile ".f90"
load_lib fortran.exp
# outputs nameless DW_TAG_module, unlike with gfortran which just
# doesn't emit DW_TAG_module in this case.
-require !skip_fortran_tests
+require allow_fortran_tests
standard_testfile .f
load_lib "fortran.exp"
# Test calling Fortran functions that are compiled without debug
# information.
-require !skip_fortran_tests
+require allow_fortran_tests
standard_testfile call-no-debug-prog.f90 call-no-debug-func.f90
load_lib fortran.exp
# This file is part of the gdb testsuite. It contains tests for evaluating
# Fortran subarray expression.
-require !skip_fortran_tests
+require allow_fortran_tests
standard_testfile .f90
load_lib fortran.exp
# Test that GDB can print an allocatable array that is a data field
# within a class like type.
-require !skip_fortran_tests
+require allow_fortran_tests
standard_testfile ".f90"
load_lib fortran.exp
# This file was written by Jan Kratochvil <jan.kratochvil@redhat.com>.
-require !skip_fortran_tests
+require allow_fortran_tests
standard_testfile .f90
load_lib "fortran.exp"
# Test tab completion of Fortran type field names.
-require !skip_fortran_tests
+require allow_fortran_tests
standard_testfile ".f90"
load_lib fortran.exp
standard_testfile .f90
load_lib fortran.exp
-require !skip_fortran_tests
+require allow_fortran_tests
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug f90 quiet}]} {
return -1
# Test "set debug expr 1" on Fortran expressions.
-require !skip_fortran_tests
+require allow_fortran_tests
# Test relies on checking gdb debug output. Do not run if gdb debug is
# enabled as any debug will be redirected to the log.
# This file is part of the gdb testsuite. It contains tests for type-printing
# and value-printing Fortran derived types having also functions.
-require !skip_fortran_tests
+require allow_fortran_tests
standard_testfile .f90
load_lib fortran.exp
# Print some single dimensional integer arrays that will have a byte
# stride in the debug information.
-require !skip_fortran_tests
+require allow_fortran_tests
standard_testfile ".f90"
# This file is part of the gdb testsuite. It contains tests for type-printing
# and value-printing Fortran derived types.
-require !skip_fortran_tests
+require allow_fortran_tests
standard_testfile .f90
load_lib "fortran.exp"
load_lib "fortran.exp"
-require !skip_fortran_tests
+require allow_fortran_tests
proc test_dot_operations {} {
# Test using whatis and ptype on different configurations of dynamic
# types.
-require !skip_fortran_tests
+require allow_fortran_tests
standard_testfile ".f90"
load_lib fortran.exp
# Test printing of an empty Fortran string.
-require !skip_fortran_tests
+require allow_fortran_tests
standard_testfile ".f90"
load_lib fortran.exp
load_lib "fortran.exp"
-require !skip_fortran_tests
+require allow_fortran_tests
proc test_integer_literals_accepted {} {
global gdb_prompt
# Exercise passing and returning arguments in Fortran. This test case
# is based on the GNU Fortran Argument passing conventions.
-require !skip_fortran_tests
+require allow_fortran_tests
standard_testfile ".f90"
load_lib "fortran.exp"
load_lib "sym-info-cmds.exp"
-require !skip_fortran_tests
+require allow_fortran_tests
standard_testfile info-types.f90 info-types-2.f90
load_lib "fortran.exp"
load_lib "sym-info-cmds.exp"
-require !skip_fortran_tests
+require allow_fortran_tests
standard_testfile info-types.f90 info-types-2.f90
load_lib "fortran.exp"
-require !skip_fortran_tests
+require allow_fortran_tests
standard_testfile .f90
# Testing GDB's implementation of LBOUND and UBOUND.
-require !skip_fortran_tests
+require allow_fortran_tests
standard_testfile ".F90"
load_lib fortran.exp
load_lib fortran.exp
-require !skip_fortran_tests
+require allow_fortran_tests
standard_testfile library-module-main.f90
set srclibfile ${testfile}-lib.f90
standard_testfile .f90
load_lib fortran.exp
-require !skip_fortran_tests
+require allow_fortran_tests
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug f90 quiet}]} {
return -1
load_lib "fortran.exp"
-require !skip_fortran_tests
+require allow_fortran_tests
standard_testfile .f90
# each case to ensure that trying to print objects or types from one
# language, while GDB's language is set to another, doesn't crash GDB.
-require !skip_fortran_tests
+require allow_fortran_tests
standard_testfile mixed-lang-stack.c mixed-lang-stack.cpp mixed-lang-stack.f90
load_lib "fortran.exp"
-require !skip_fortran_tests
+require allow_fortran_tests
standard_testfile .f90
# This file is part of the gdb testsuite. It contains tests for evaluating
# Fortran subarray expression.
-require !skip_fortran_tests
+require allow_fortran_tests
standard_testfile .f90
load_lib "fortran.exp"
# This file is part of the gdb testsuite. It contains tests for fortran
# namelist.
-require !skip_fortran_tests
+require allow_fortran_tests
standard_testfile .f90
load_lib "fortran.exp"
# Further testing of placing breakpoints in nested subroutines.
-require !skip_fortran_tests
+require allow_fortran_tests
load_lib "fortran.exp"
standard_testfile ".f90"
# This testcase is supposed to test DWARF static link which is usually
# used together with nested functions.
-require !skip_fortran_tests
+require allow_fortran_tests
standard_testfile .f90
load_lib "fortran.exp"
standard_testfile ".f90"
load_lib "fortran.exp"
-require !skip_fortran_tests
+require allow_fortran_tests
if { [prepare_for_testing ${testfile}.exp ${testfile} ${srcfile} \
{debug f90 quiet}] } {
# Test for GDB printing a pointer to a type containing a buffer.
-require !skip_fortran_tests
+require allow_fortran_tests
standard_testfile ".f90"
load_lib fortran.exp
load_lib "fortran.exp"
-require !skip_fortran_tests
+require allow_fortran_tests
standard_testfile .f90
standard_testfile "pointers.f90"
load_lib fortran.exp
-require !skip_fortran_tests
+require allow_fortran_tests
if { [prepare_for_testing ${testfile}.exp ${testfile} ${srcfile} \
{debug f90 quiet}] } {
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-require !skip_fortran_tests
+require allow_fortran_tests
standard_testfile .f90
load_lib fortran.exp
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-require !skip_fortran_tests
+require allow_fortran_tests
standard_testfile .f90
load_lib fortran.exp
# This file contains a test for printing the types of functions.
-require !skip_fortran_tests
+require allow_fortran_tests
standard_testfile .f90
load_lib "fortran.exp"
# Testing GDB's implementation of RANK keyword.
-require !skip_fortran_tests
+require allow_fortran_tests
standard_testfile ".f90"
load_lib fortran.exp
# Testing GDB's implementation of SHAPE keyword.
-require !skip_fortran_tests
+require allow_fortran_tests
standard_testfile ".f90"
load_lib fortran.exp
# calls and substring operations that are to be skipped due to short
# circuiting.
-require !skip_fortran_tests
+require allow_fortran_tests
standard_testfile ".f90"
# Testing GDB's implementation of SIZE keyword.
-require !skip_fortran_tests
+require allow_fortran_tests
standard_testfile ".f90"
load_lib fortran.exp
standard_testfile .f90
load_lib fortran.exp
-require !skip_fortran_tests
+require allow_fortran_tests
if {[prepare_for_testing "failed to prepare" $testfile $srcfile \
{debug f90 quiet}]} {
# This file is part of the gdb testsuite. It contains tests for evaluating
# Fortran subarray expression.
-require !skip_fortran_tests
+require allow_fortran_tests
standard_testfile .f
load_lib fortran.exp
load_lib "fortran.exp"
-require !skip_fortran_tests
+require allow_fortran_tests
# Cast the value 1 to the type 'BASE_TYPE (kind=TYPE_KIND)'. The
# expected result of the cast is CAST_RESULT, and the size of the
load_lib "fortran.exp"
-require !skip_fortran_tests
+require allow_fortran_tests
proc test_integer_literal_types_accepted {} {
global gdb_prompt
standard_testfile "vla.f90"
load_lib fortran.exp
-require !skip_fortran_tests
+require allow_fortran_tests
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \
{debug f90 quiet}] } {
standard_testfile ".f90"
load_lib "fortran.exp"
-require !skip_fortran_tests
+require allow_fortran_tests
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \
{debug f90 quiet}] } {
standard_testfile "vla.f90"
load_lib fortran.exp
-require !skip_fortran_tests
+require allow_fortran_tests
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \
{debug f90 quiet}] } {
standard_testfile "vla.f90"
load_lib fortran.exp
-require !skip_fortran_tests
+require allow_fortran_tests
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \
{debug f90 quiet}] } {
standard_testfile "vla-sub.f90"
load_lib "fortran.exp"
-require !skip_fortran_tests
+require allow_fortran_tests
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \
{debug f90 quiet}] } {
standard_testfile "vla.f90"
load_lib "fortran.exp"
-require !skip_fortran_tests
+require allow_fortran_tests
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \
{debug f90 quiet}] } {
standard_testfile "vla.f90"
load_lib fortran.exp
-require !skip_fortran_tests
+require allow_fortran_tests
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \
{debug f90 quiet}] } {
standard_testfile ".f90"
load_lib "fortran.exp"
-require !skip_fortran_tests
+require allow_fortran_tests
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \
{debug f90 quiet}] } {
standard_testfile "vla-sub.f90"
load_lib fortran.exp
-require !skip_fortran_tests
+require allow_fortran_tests
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \
{debug f90 quiet}] } {
standard_testfile "vla-sub.f90"
load_lib fortran.exp
-require !skip_fortran_tests
+require allow_fortran_tests
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \
{debug f90 quiet}] } {
standard_testfile "vla-sub.f90"
load_lib fortran.exp
-require !skip_fortran_tests
+require allow_fortran_tests
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \
{debug f90 quiet}] } {
standard_testfile "vla.f90"
load_lib "fortran.exp"
-require !skip_fortran_tests
+require allow_fortran_tests
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \
{debug f90 quiet}] } {
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-require !skip_fortran_tests
+require allow_fortran_tests
standard_testfile type.f90
load_lib "fortran.exp"
# Test -symbol-info-modules, listing Fortran modules.
-require !skip_fortran_tests
+require allow_fortran_tests
load_lib fortran.exp
load_lib mi-support.exp
set MIFLAGS "-i=mi"
load_lib "fortran.exp"
-require !skip_fortran_tests
+require allow_fortran_tests
gdb_exit
if [mi_gdb_start] {
# Verify that, using the MI, we can evaluate a simple Fortran Variable
# Length Array (VLA).
-require !skip_fortran_tests
+require allow_fortran_tests
load_lib mi-support.exp
load_lib fortran.exp
return [allow_cplus_tests]
}
-# Return a 1 if I don't even want to try to test FORTRAN.
+# Return a 1 if I want to try to test FORTRAN.
-proc skip_fortran_tests {} {
- return 0
+proc allow_fortran_tests {} {
+ return 1
}
# Return a 1 if I want to try to test ada.