standard_testfile .cc
-require !skip_cplus_tests
+require allow_cplus_tests
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \
{debug c++}] } {
# compiler.
# Only test C++ if we are able.
-require !skip_cplus_tests
+require allow_cplus_tests
set lang c++
source $srcdir/$subdir/align.exp.tcl
#
# test running programs
#
-require !skip_cplus_tests
+require allow_cplus_tests
standard_testfile .cc
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Only test C++ if we are able.
-require !skip_cplus_tests
+require allow_cplus_tests
set lang c++
source $srcdir/$subdir/infcall-nested-structs.exp.tcl
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Only test C++ if we are able.
-require !skip_cplus_tests
+require allow_cplus_tests
set lang c++
source $srcdir/$subdir/info-types.exp.tcl
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Only test C++ if we are able.
-require !skip_cplus_tests
+require allow_cplus_tests
set lang c++
source $srcdir/$subdir/max-depth.exp.tcl
}
# Only test C++ if we are able. Always use C.
-if { [skip_cplus_tests] } {
- set lang_list {c}
-} else {
- set lang_list {c c++}
+set lang_list {c}
+if {[allow_cplus_tests]} {
+ lappend lang_list c++
}
foreach_with_prefix lang $lang_list {
# 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_cplus_tests
+require allow_cplus_tests
standard_testfile .c
#
-require !skip_cplus_tests
+require allow_cplus_tests
standard_testfile psymtab1.c psymtab2.c
standard_testfile .cc
-require !skip_cplus_tests
+require allow_cplus_tests
if {[prepare_for_testing $testfile $testfile $srcfile \
{debug nowarnings c++}]} {
standard_testfile .cc
-require !skip_cplus_tests
+require allow_cplus_tests
if {[prepare_for_testing $testfile $testfile $srcfile \
{debug nowarnings c++ additional_flags=-std=c++11}]} {
standard_testfile .cc
-require !skip_cplus_tests
+require allow_cplus_tests
if {[prepare_for_testing $testfile $testfile $srcfile \
{debug nowarnings c++}]} {
standard_testfile .cc
-require !skip_cplus_tests
+require allow_cplus_tests
if {[prepare_for_testing $testfile $testfile $srcfile \
{debug nowarnings c++}]} {
standard_testfile .cc
-require !skip_cplus_tests
+require allow_cplus_tests
if {[prepare_for_testing $testfile $testfile $srcfile \
{debug nowarnings c++}]} {
standard_testfile .cc
-require !skip_cplus_tests
+require allow_cplus_tests
if {[prepare_for_testing $testfile $testfile $srcfile \
{debug nowarnings c++}]} {
standard_testfile .cc
-require !skip_cplus_tests
+require allow_cplus_tests
if {[prepare_for_testing $testfile $testfile $srcfile \
{debug nowarnings c++}]} {
standard_testfile .cc
-require !skip_cplus_tests
+require allow_cplus_tests
if {[prepare_for_testing $testfile $testfile $srcfile \
{debug nowarnings c++}]} {
# This tests that C++ alignof works in gdb, and that it agrees with
# the compiler.
-require !skip_cplus_tests
+require allow_cplus_tests
# The types we're going to test.
# about the field or baseclass being ambiguous is emitted at the right
# times.
-require !skip_cplus_tests
+require allow_cplus_tests
standard_testfile .cc
# test running programs
#
-require !skip_cplus_tests
+require allow_cplus_tests
standard_testfile .cc
# test running programs
#
-require !skip_cplus_tests
+require allow_cplus_tests
standard_testfile .cc
# This file is part of the gdb testsuite.
-require !skip_cplus_tests
+require allow_cplus_tests
standard_testfile .cc anon-ns2.cc
#
-require !skip_cplus_tests
+require allow_cplus_tests
standard_testfile .cc
# Test G++ has compiled debuginfo without a C++ '&' reference where it should
# not be. GCC Bug 33537.
-require !skip_cplus_tests
+require allow_cplus_tests
standard_testfile .cc
# Test the printing of element indices in C++ arrays.
-require !skip_cplus_tests
+require allow_cplus_tests
set lang c++
# Test the detection and printing of repeated elements in C++ arrays.
-require !skip_cplus_tests
+require allow_cplus_tests
set lang c++
# Test returning bool.
-require !skip_cplus_tests
+require allow_cplus_tests
standard_testfile .cc
standard_testfile .cc
-require !skip_cplus_tests
+require allow_cplus_tests
# CXX11_ABI specifies the value to define _GLIBCXX_USE_CXX11_ABI as.
# This file is part of the gdb testsuite
-require !skip_cplus_tests
+require allow_cplus_tests
standard_testfile .cc breakpoint-locs-2.cc
# This contains tests for breakpoints in C++.
-require !skip_cplus_tests
+require allow_cplus_tests
#
# test running programs
# This file was written by Sue Kimura (sue_kimura@hp.com)
# Rewritten by Michael Chastain (mec.gnu@mindspring.com)
-require !skip_stl_tests
+require allow_stl_tests
standard_testfile .cc
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-require !skip_cplus_tests
+require allow_cplus_tests
standard_testfile .cc call-c-1.c
set objfilec [standard_output_file ${testfile}-1.o]
# Test callling a method on a variable that has been put in a
# register.
-require !skip_cplus_tests
+require allow_cplus_tests
load_lib "cp-support.exp"
load_lib dwarf.exp
#
-require !skip_cplus_tests
+require allow_cplus_tests
standard_testfile .cc casts03.cc
# This file is part of the gdb testsuite
-require !skip_cplus_tests
+require allow_cplus_tests
standard_testfile .cc
# 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_cplus_tests
+require allow_cplus_tests
standard_testfile .cc
set nl "\[\r\n\]+"
-require !skip_cplus_tests
+require allow_cplus_tests
load_lib "cp-support.exp"
# This file is part of the gdb testsuite.
-require !skip_cplus_tests
+require allow_cplus_tests
# Tests for c++/12273, breakpoint/12803
standard_testfile .cc
# This file is part of the gdb testsuite.
-require !skip_cplus_tests
+require allow_cplus_tests
standard_testfile .cc
standard_testfile .cc
append binfile .o
-require !skip_cplus_tests
+require allow_cplus_tests
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" object {c++ debug}] != "" } {
untested "failed to compile"
}
}
-require !skip_cplus_tests
+require allow_cplus_tests
standard_testfile pr9594.cc
{operation_1<T>::function}
# Start the test
-if {[skip_cplus_tests]} { continue }
+if {![allow_cplus_tests]} { continue }
#
# test running programs
# Tests for breakpoint on labels in methods.
-require !skip_cplus_tests
+require allow_cplus_tests
standard_testfile .cc
# This file was written by Fred Fish. (fnf@cygnus.com)
# Adapted for g++ 3.0 ABI by Michael Chastain. (chastain@redhat.com)
-require !skip_cplus_tests
+require allow_cplus_tests
standard_testfile .cc
standard_testfile .cc
-require !skip_cplus_tests
+require allow_cplus_tests
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}] } {
return -1
# Call to template instantiations.
-require !skip_cplus_tests
+require allow_cplus_tests
standard_testfile cttiadd.cc cttiadd1.cc cttiadd2.cc cttiadd3.cc
# Test "set debug expr 1" on c++ expressions.
-require !skip_cplus_tests
+require allow_cplus_tests
gdb_start
gdb_test_no_output "set language c++"
# This file was written by Fred Fish. (fnf@cygnus.com)
-require !skip_cplus_tests
+require allow_cplus_tests
### The demangling style we last sent to GDB.
set current_demangling_style none
# Start program.
-require !skip_cplus_tests
+require allow_cplus_tests
load_lib "cp-support.exp"
# Test that the disassembler correctly demangles C++ function names in
# it's header line.
-require !skip_cplus_tests
+require allow_cplus_tests
standard_testfile .cc
# 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_cplus_tests
+require allow_cplus_tests
standard_testfile .cc
# multiple locations and breakpoints are found in
# gdb.base/ena-dis-br.exp.
-require !skip_cplus_tests
+require allow_cplus_tests
standard_testfile .cc
# This file is part of the gdb testsuite
-require !skip_cplus_tests
+require allow_cplus_tests
standard_testfile .cc
set ws "\[\r\n\t \]+"
set nl "\[\r\n\]+"
-require !skip_stl_tests
+require allow_stl_tests
standard_testfile .cc
standard_testfile .cc
-require !skip_cplus_tests
+require allow_cplus_tests
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
return -1
# 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_cplus_tests
+require allow_cplus_tests
set srcfile expand-sals.cc
if { [prepare_for_testing "failed to prepare" expand-sals $srcfile {debug c++}] } {
# Test breakpoints on extern "C" functions implemented in C++.
-require !skip_cplus_tests
+require allow_cplus_tests
standard_testfile .cc
# 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_cplus_tests
+require allow_cplus_tests
standard_testfile .cc
# operand.
-require !skip_cplus_tests
+require allow_cplus_tests
standard_testfile .cc
set ws "\[\r\n\t \]*"
set nl "\[\r\n\]+"
-require !skip_cplus_tests
+require allow_cplus_tests
#
# test running programs
#
# PR c++/9489.
-require !skip_cplus_tests !skip_shlib_tests
+require allow_cplus_tests !skip_shlib_tests
standard_testfile .cc gdb2384-base.cc
# This test is largely based of gdb.base/callfuncs.exp.
-require !skip_cplus_tests
+require allow_cplus_tests
if [target_info exists gdb,nosignals] {
verbose "Skipping gdb2495.exp because of nosignals."
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-require !skip_cplus_tests
+require allow_cplus_tests
standard_testfile hang1.cc hang2.cc hang3.cc
# Test expressions which assume an implicit "this" with a qualified
# name.
-require !skip_cplus_tests
+require allow_cplus_tests
standard_testfile .cc
load_lib dwarf.exp
-require dwarf2_support !skip_cplus_tests
+require dwarf2_support allow_cplus_tests
standard_testfile .cc .S
set asm_file [standard_output_file ${srcfile2}]
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Only test C++ if we are able. Always use C.
-require !skip_cplus_tests
+require allow_cplus_tests
set lang {c++}
set debug nodebug
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Only test C++ if we are able. Always use C.
-require !skip_cplus_tests
+require allow_cplus_tests
set lang {c++}
set debug debug
set nl "\[\r\n\]+"
set vhn "\\$\[0-9\]+"
-require !skip_cplus_tests
+require allow_cplus_tests
load_lib "cp-support.exp"
# This file is part of the gdb testsuite.
# It tests various aspects of iostream that have caused problems for gdb.
-require !skip_cplus_tests
+require allow_cplus_tests
standard_testfile .cc
set options {debug}
if {$lang == "c++"} {
- if { [skip_cplus_tests] } {
+ if { ![allow_cplus_tests] } {
return
}
lappend options $lang
# test running programs
#
-require !skip_cplus_tests
+require allow_cplus_tests
standard_testfile .cc
# This file is part of the gdb testsuite
-require !skip_cplus_tests
+require allow_cplus_tests
#
# test running programs
# This file is part of the gdb testsuite
-require !skip_cplus_tests
+require allow_cplus_tests
#
# test running programs
# passed in registers. This test passes so many structures it is
# hoped that some will need to be placed onto the stack.
-require !skip_cplus_tests
+require allow_cplus_tests
standard_testfile .cc
# Test that breakpoints on C++ constructors work, despite the
# fact that gcc generates several versions of constructor function.
-require !skip_cplus_tests
+require allow_cplus_tests
standard_testfile .cc
# This test verifies that setting breakpoint on line in inline
# function will fire in all instantiations of that function.
-require !skip_cplus_tests
+require allow_cplus_tests
standard_testfile mb-inline1.cc mb-inline2.cc
set hdrfile "${testfile}.h"
# This test verifies that setting breakpoint on line in template
# function will fire in all instantiations of that template.
-require !skip_stl_tests
+require allow_stl_tests
standard_testfile .cc
# 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_cplus_tests
+require allow_cplus_tests
standard_testfile .cc
set vhn "\\$\[0-9\]+"
-require !skip_cplus_tests
+require allow_cplus_tests
standard_testfile .cc
lappend result [list "${method_name}($params)" $expect]
}
-require !skip_cplus_tests
+require allow_cplus_tests
# Tests for c++/12266 et al
standard_testfile .cc
# test running programs
#
-require !skip_cplus_tests
+require allow_cplus_tests
standard_testfile .cc
# This tests setting a break in an ambiguous c++ method with
# current_language set to c.
-require !skip_cplus_tests
+require allow_cplus_tests
standard_testfile .cc
# This file was written by Fred Fish. (fnf@cygnus.com)
-require !skip_cplus_tests
+require allow_cplus_tests
standard_testfile .cc
# Do not run in environments which do not support C++.
# This test can only be run on x86-like targets which support DWARF.
-require dwarf2_support !skip_cplus_tests
+require dwarf2_support allow_cplus_tests
if {![istarget "x86_64-*-*"] || ![is_lp64_target]} {
return 0
-require !skip_cplus_tests
+require allow_cplus_tests
standard_testfile .cc namespace1.cc
# Regression test for type printing of private nested classes.
-require !skip_cplus_tests
+require allow_cplus_tests
load_lib "cp-support.exp"
# the corresponding source file. It then walks the nodes of this tree
# to construct input suitable for passing to cp_test_ptype_class.
-require !skip_cplus_tests
+require allow_cplus_tests
load_lib "cp-support.exp"
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-require !skip_cplus_tests
+require allow_cplus_tests
standard_testfile .cc
standard_testfile exceptprint.cc
-require !skip_cplus_tests
+require allow_cplus_tests
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
return -1
set additional_flags ""
-require !skip_cplus_tests
+require allow_cplus_tests
standard_testfile .cc
load_lib dwarf.exp
-require dwarf2_support !skip_cplus_tests
+require dwarf2_support allow_cplus_tests
standard_testfile .cc nsalias-dw.S
# This file is part of the gdb testsuite.
-require !skip_cplus_tests
+require allow_cplus_tests
standard_testfile .cc
set nl "\[\r\n\]+"
-require !skip_cplus_tests
+require allow_cplus_tests
standard_testfile .cc
# test running programs
#
-require !skip_cplus_tests
+require allow_cplus_tests
standard_testfile .cc
gdb_test "break ${class}::hibob if (a_param == 3)" "Breakpoint (\[0-9\]).*"
}
-require !skip_cplus_tests
+require allow_cplus_tests
# Test for c++/11734
standard_testfile ovsrch1.cc ovsrch2.cc ovsrch3.cc ovsrch4.cc
# - have inlined copy ctor
# - have deleted destructor
-require !skip_cplus_tests
+require allow_cplus_tests
standard_testfile .cc
# The companion test file pass-by-ref-2.exp also contains
# manually-written cases.
-require !skip_cplus_tests
+require allow_cplus_tests
# The program source is generated in the output directory.
# We use standard_testfile here to set convenience variables.
# Test printing c++ pointer-to-member.
-require !skip_cplus_tests
+require allow_cplus_tests
standard_testfile .cc
# This file is part of the gdb testsuite.
-require !skip_cplus_tests
+require allow_cplus_tests
#
# test running programs
# This file is part of the gdb testsuite.
-require !skip_cplus_tests
+require allow_cplus_tests
#
# test running programs
# This file is part of the gdb testsuite
-require !skip_cplus_tests
+require allow_cplus_tests
#
# test running programs
set nl "\[\r\n\]+"
-require !skip_cplus_tests
+require allow_cplus_tests
load_lib "cp-support.exp"
# This file is part of the gdb testsuite
-require !skip_cplus_tests
+require allow_cplus_tests
standard_testfile .cc
# This file is part of the gdb testsuite
-require !skip_cplus_tests
+require allow_cplus_tests
standard_testfile .cc
set nl "\[\r\n\]+"
-require !skip_cplus_tests
+require allow_cplus_tests
load_lib "cp-support.exp"
# This file is part of the gdb testsuite.
-require !skip_cplus_tests
+require allow_cplus_tests
standard_testfile .cc
# 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_cplus_tests
+require allow_cplus_tests
standard_testfile bool.cc
# This test checks that a constructor and destructor are printed the same.
-require !skip_cplus_tests
+require allow_cplus_tests
standard_testfile .cc
# This file is part of the gdb testsuite
-require !skip_cplus_tests
+require allow_cplus_tests
#
# test running programs
#
-require !skip_cplus_tests
+require allow_cplus_tests
standard_testfile psmang1.cc psmang2.cc
# 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_cplus_tests
+require allow_cplus_tests
standard_testfile .cc
# This file is part of the gdb testsuite.
-require !skip_cplus_tests
+require allow_cplus_tests
standard_testfile .cc
set nl "\[\r\n\]+"
-require !skip_cplus_tests
+require allow_cplus_tests
load_lib "cp-support.exp"
# This file is part of the gdb testsuite
-require !skip_cplus_tests
+require allow_cplus_tests
gdb_exit
gdb_start
# 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_cplus_tests !skip_shlib_tests
+require allow_cplus_tests !skip_shlib_tests
standard_testfile bool.cc .cc
# test running programs
#
-require !skip_cplus_tests
+require allow_cplus_tests
standard_testfile .cc
# test running programs
#
-require !skip_cplus_tests
+require allow_cplus_tests
standard_testfile .cc
# (involving templates, in particular) where this problem triggers
# because GDB and GCC have different ideas what a class is called.
-require !skip_cplus_tests
+require allow_cplus_tests
#
# test running programs
# C++11 rvalue reference type casting tests, based on gdb.cp/casts.exp.
-require !skip_cplus_tests
+require allow_cplus_tests
standard_testfile .cc
# Tests for overloaded member functions with rvalue reference parameters,
# based on gdb.cp/overload.exp.
-require !skip_cplus_tests
+require allow_cplus_tests
load_lib "cp-support.exp"
# Tests for rvalue reference parameters of types and their subtypes in GDB,
# based on gdb.cp/ref-params.exp.
-require !skip_cplus_tests
+require allow_cplus_tests
standard_testfile .cc
standard_testfile .cc
-require !skip_cplus_tests
+require allow_cplus_tests
if {[prepare_for_testing ${testfile}.exp $testfile $srcfile \
{debug c++ additional_flags="-std=gnu++11"}] } {
# Tests for reference types with short type variables in GDB, based on
# gdb.cp/ref-types.exp.
-require !skip_cplus_tests
+require allow_cplus_tests
standard_testfile .cc
# Tests for linespec errors with C++.
# Derived from gdb.linespec/ls-errs.exp.
-require !skip_cplus_tests
+require allow_cplus_tests
standard_testfile .cc
set exefile $testfile
}
}
-require !skip_cplus_tests
+require allow_cplus_tests
# Tests for c++/12750
standard_testfile .cc
# 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_cplus_tests
+require allow_cplus_tests
standard_testfile .cc
# 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_cplus_tests
+require allow_cplus_tests
standard_testfile .cc
# Test size of arrays of stubbed types (structures where the full definition
# is not immediately available).
-require !skip_cplus_tests
+require allow_cplus_tests
standard_testfile .cc stub-array-size2.cc
# Test for subtype definitions, i.e., types defined in classes, functions,
# etc.
-require !skip_cplus_tests
+require allow_cplus_tests
load_lib "cp-support.exp"
# This file is part of the gdb testsuite.
-require !skip_cplus_tests
+require allow_cplus_tests
standard_testfile .cc
set ws "\[\r\n\t \]+"
-require !skip_cplus_tests
+require allow_cplus_tests
standard_testfile .cc
# This file is part of the gdb testsuite
-require !skip_stl_tests
+require allow_stl_tests
#
# test running programs
#
# Check if unsigned typedef are handled correctly with typed enums.
-require !skip_cplus_tests
+require allow_cplus_tests
standard_testfile .cc
#
# Make sure that inheritance through a typedef is well handled.
-require !skip_cplus_tests
+require allow_cplus_tests
standard_testfile .cc
# This file is part of the gdb testsuite.
-require !skip_cplus_tests
+require allow_cplus_tests
standard_testfile .cc
standard_testfile .cc
-require !skip_cplus_tests
+require allow_cplus_tests
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
return -1
# source file "userdef.cc"
#
-require !skip_stl_tests
+require allow_stl_tests
standard_testfile .cc
# Test expressions in which variable names shadow tag names.
-require !skip_cplus_tests
+require allow_cplus_tests
standard_testfile var-tag.cc var-tag-2.cc var-tag-3.cc var-tag-4.cc
# This file is part of the gdb testsuite.
-require !skip_cplus_tests
+require allow_cplus_tests
standard_testfile .cc
# Make sure printing virtual base class data member works correctly (PR16841)
-require !skip_cplus_tests
+require allow_cplus_tests
standard_testfile .cc
set nl "\[\r\n\]+"
-require !skip_cplus_tests
+require allow_cplus_tests
load_lib "cp-support.exp"
set nl "\[\r\n\]+"
-require !skip_cplus_tests
+require allow_cplus_tests
load_lib "cp-support.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_cplus_tests !skip_hw_watchpoint_tests
+require allow_cplus_tests !skip_hw_watchpoint_tests
standard_testfile .cc
# 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_cplus_tests
+require allow_cplus_tests
standard_testfile .cc
# This test can only be run on targets which support DWARF-2 and use gas.
require dwarf2_support
-require !skip_cplus_tests
+require allow_cplus_tests
standard_testfile .S
# type containing a static member of the same type.
# Still no C++ compiler is used.
-require !skip_cplus_tests
+require allow_cplus_tests
load_lib dwarf.exp
# This test can only be run on targets which support DWARF-2 and use gas.
# type containing a static member of the same type.
# Still no C++ compiler is used.
-require !skip_cplus_tests
+require allow_cplus_tests
load_lib dwarf.exp
# This test can only be run on targets which support DWARF-2 and use gas.
# This test can only be run on targets which support DWARF-2 and use gas.
require dwarf2_support
-require !skip_cplus_tests
+require allow_cplus_tests
standard_testfile main.c -dw.S
# This test can only be run on targets which support DWARF-2 and use gas.
require dwarf2_support
-require !skip_cplus_tests
+require allow_cplus_tests
standard_testfile main.c -dw.S
# Test a C++ reference marked with DW_OP_GNU_implicit_pointer.
# The referenced value is a global array whose location is a DW_OP_addr.
-require !skip_cplus_tests
+require allow_cplus_tests
load_lib dwarf.exp
# Test a C++ reference marked with DW_OP_GNU_implicit_pointer.
# The referenced value is a DW_AT_const_value.
-require !skip_cplus_tests
+require allow_cplus_tests
load_lib dwarf.exp
# Test a C++ reference marked with DW_OP_GNU_implicit_pointer.
# The referenced value is a global variable whose location is a DW_OP_addr.
-require !skip_cplus_tests
+require allow_cplus_tests
load_lib dwarf.exp
# Test a C++ reference marked with DW_OP_GNU_implicit_pointer.
# The referenced value is a global struct whose location is a DW_OP_addr.
-require !skip_cplus_tests
+require allow_cplus_tests
load_lib dwarf.exp
# on specific compiler versions or use of optimization switches, in
# this case -flto.
-require !skip_cplus_tests
+require allow_cplus_tests
load_lib dwarf.exp
# This test can only be run on targets which support DWARF-2 and use gas.
require dwarf2_support
-require !skip_cplus_tests
+require allow_cplus_tests
standard_testfile .S
# This test can only be run on targets which support DWARF-2 and use gas.
require dwarf2_support
-require !skip_cplus_tests
+require allow_cplus_tests
standard_testfile .cc -dw.S
# This test can only be run on targets which support DWARF-2 and use gas.
require dwarf2_support
-require !skip_cplus_tests
+require allow_cplus_tests
standard_testfile main.c -dw4.S
# This test can only be run on targets which support DWARF-2 and use gas.
require dwarf2_support
-require !skip_cplus_tests
+require allow_cplus_tests
standard_testfile main.c .S
# 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_cplus_tests
+require allow_cplus_tests
standard_testfile .cc
# This test can only be run on targets which support DWARF-2 and use gas.
require dwarf2_support
-require !skip_cplus_tests
+require allow_cplus_tests
standard_testfile main.c -dw.S
# This test can only be run on targets which support DWARF-2 and use gas.
require dwarf2_support
-require !skip_cplus_tests
+require allow_cplus_tests
standard_testfile method-ptr.cc -dw.S
load_lib gdb-guile.exp
-require !skip_cplus_tests
+require allow_cplus_tests
standard_testfile .cc
test_subscript_regression "${binfile}" "c"
-if ![skip_cplus_tests] {
+if {[allow_cplus_tests]} {
if { [build_inferior "${binfile}-cxx" "c++"] < 0 } {
return
}
standard_testfile lspec.cc
-require !skip_cplus_tests
+require allow_cplus_tests
set opts {debug c++}
set objfile1 [standard_output_file ${testfile}one.o]
# Tests for explicit linespecs
-require !skip_cplus_tests
+require allow_cplus_tests
standard_testfile .cc
set exefile $testfile
set baseone base/one/thefile.cc
set basetwo base/two/thefile.cc
-require !skip_cplus_tests
+require allow_cplus_tests
if {[prepare_for_testing "failed to prepare" $exefile \
[list $srcfile $baseone $basetwo] \
standard_testfile .cc
set exefile $testfile
-require !skip_cplus_tests
+require allow_cplus_tests
if {[prepare_for_testing "failed to prepare" $exefile $srcfile \
{debug nowarnings c++}]} {
set options {debug}
if {$lang == "C++"} {
- if {[skip_cplus_tests]} {
+ if {![allow_cplus_tests]} {
return 0
}
# Build ".c" source file with g++.
set baseone base/one/thefile.cc
set basetwo base/two/thefile.cc
-require !skip_cplus_tests
+require allow_cplus_tests
if {[prepare_for_testing "failed to prepare" $execfile \
[list $srcfile $baseone $basetwo] \
# Test that children of classes are properly reported. Regression
# test for gdb/792.
-require !skip_cplus_tests
+require allow_cplus_tests
load_lib mi-support.exp
set MIFLAGS "-i=mi"
# Test the -catch-throw, -catch-rethrow, and -catch-catch MI commands.
-require !skip_cplus_tests
+require allow_cplus_tests
load_lib mi-support.exp
set MIFLAGS "-i=mi"
# 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_cplus_tests
+require allow_cplus_tests
load_lib mi-support.exp
set MIFLAGS "-i=mi"
# errors is generated when setting a breakpoint in a non-existent
# file with a Windows-style logical drive names and C++.
-require !skip_cplus_tests
+require allow_cplus_tests
load_lib mi-support.exp
set MIFLAGS "-i=mi"
# 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_cplus_tests
+require allow_cplus_tests
load_lib mi-support.exp
set MIFLAGS "-i=mi"
# 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_cplus_tests
+require allow_cplus_tests
load_lib mi-support.exp
set MIFLAGS "-i=mi"
# This file is part of the GDB testsuite. It tests the mechanism
# exposing values to Python.
-require !skip_cplus_tests !skip_python_tests
+require allow_cplus_tests !skip_python_tests
standard_testfile py-explore.cc
# exposing rvalue reference values to Python. It is based on
# gdb.python/py-value-cc.exp.
-require !skip_cplus_tests !skip_python_tests
+require allow_cplus_tests !skip_python_tests
standard_testfile .cc
# This file is part of the GDB testsuite. It tests the mechanism
# exposing values to Python.
-require !skip_cplus_tests !skip_python_tests
+require allow_cplus_tests !skip_python_tests
standard_testfile .cc
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable \
# 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_cplus_tests !skip_python_tests
+require allow_cplus_tests !skip_python_tests
load_lib gdb-python.exp
load_lib cp-support.exp
# This file is part of the GDB testsuite. It tests the mechanism
# exposing values to Python.
-require !skip_cplus_tests !skip_python_tests
+require allow_cplus_tests !skip_python_tests
standard_testfile .cc
test_subscript_regression "${binfile}" "c"
-if ![skip_cplus_tests] {
+if {[allow_cplus_tests]} {
if { [build_inferior "${binfile}-cxx" "c++"] < 0 } {
return -1
}
load_lib gdb-python.exp
-require !skip_cplus_tests !skip_python_tests
+require allow_cplus_tests !skip_python_tests
standard_testfile py-xmethods.cc
fail "$msg"
}
-# Return a 1 for configurations for which we don't even want to try to
-# test C++.
+# Return a 1 for configurations for which we want to try to test C++.
-proc skip_cplus_tests {} {
+proc allow_cplus_tests {} {
if { [istarget "h8300-*-*"] } {
- return 1
+ return 0
}
# The C++ IO streams are too large for HC11/HC12 and are thus not
# available. The gdb C++ tests use them and don't compile.
if { [istarget "m6811-*-*"] } {
- return 1
+ return 0
}
if { [istarget "m6812-*-*"] } {
- return 1
+ return 0
}
- return 0
+ return 1
}
-# Return a 1 for configurations for which don't have both C++ and the STL.
+# Return a 0 for configurations which are missing either C++ or the STL.
-proc skip_stl_tests {} {
- return [skip_cplus_tests]
+proc allow_stl_tests {} {
+ return [allow_cplus_tests]
}
# Return a 1 if I don't even want to try to test FORTRAN.