Use require !skip_cplus_tests

This changes some tests to use "require !skip_cplus_tests".
This commit is contained in:
Tom Tromey 2022-12-13 15:35:59 -07:00
parent 18d2b8767a
commit 7978d474f2
171 changed files with 171 additions and 265 deletions

View File

@ -18,7 +18,7 @@
standard_testfile .cc
if { [skip_cplus_tests] } { continue }
require !skip_cplus_tests
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \
{debug c++}] } {

View File

@ -19,9 +19,7 @@
# compiler.
# Only test C++ if we are able.
if { [skip_cplus_tests] } {
return -1
}
require !skip_cplus_tests
set lang c++
source $srcdir/$subdir/align.exp.tcl

View File

@ -23,7 +23,7 @@
#
# test running programs
#
if { [skip_cplus_tests] } { continue }
require !skip_cplus_tests
standard_testfile .cc

View File

@ -16,9 +16,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Only test C++ if we are able.
if { [skip_cplus_tests] } {
return -1
}
require !skip_cplus_tests
set lang c++
source $srcdir/$subdir/infcall-nested-structs.exp.tcl

View File

@ -14,9 +14,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Only test C++ if we are able.
if { [skip_cplus_tests] } {
return -1
}
require !skip_cplus_tests
set lang c++
source $srcdir/$subdir/info-types.exp.tcl

View File

@ -14,9 +14,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Only test C++ if we are able.
if { [skip_cplus_tests] } {
return -1
}
require !skip_cplus_tests
set lang c++
source $srcdir/$subdir/max-depth.exp.tcl

View File

@ -14,7 +14,7 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
if { [skip_cplus_tests] } { return }
require !skip_cplus_tests
standard_testfile .c

View File

@ -24,7 +24,7 @@
#
if { [skip_cplus_tests] } { continue }
require !skip_cplus_tests
standard_testfile psymtab1.c psymtab2.c

View File

@ -19,10 +19,7 @@ load_lib compile-support.exp
standard_testfile .cc
if {[skip_cplus_tests]} {
untested "skipping C++ tests"
return
}
require !skip_cplus_tests
if {[prepare_for_testing $testfile $testfile $srcfile \
{debug nowarnings c++}]} {

View File

@ -19,10 +19,7 @@ load_lib compile-support.exp
standard_testfile .cc
if {[skip_cplus_tests]} {
untested "skipping C++ tests"
return
}
require !skip_cplus_tests
if {[prepare_for_testing $testfile $testfile $srcfile \
{debug nowarnings c++ additional_flags=-std=c++11}]} {

View File

@ -19,10 +19,7 @@ load_lib compile-support.exp
standard_testfile .cc
if {[skip_cplus_tests]} {
untested "skipping C++ tests"
return
}
require !skip_cplus_tests
if {[prepare_for_testing $testfile $testfile $srcfile \
{debug nowarnings c++}]} {

View File

@ -19,10 +19,7 @@ load_lib compile-support.exp
standard_testfile .cc
if {[skip_cplus_tests]} {
untested "skipping C++ tests"
return
}
require !skip_cplus_tests
if {[prepare_for_testing $testfile $testfile $srcfile \
{debug nowarnings c++}]} {

View File

@ -19,10 +19,7 @@ load_lib compile-support.exp
standard_testfile .cc
if {[skip_cplus_tests]} {
untested "skipping C++ tests"
return
}
require !skip_cplus_tests
if {[prepare_for_testing $testfile $testfile $srcfile \
{debug nowarnings c++}]} {

View File

@ -19,10 +19,7 @@ load_lib compile-support.exp
standard_testfile .cc
if {[skip_cplus_tests]} {
untested "skipping C++ tests"
return
}
require !skip_cplus_tests
if {[prepare_for_testing $testfile $testfile $srcfile \
{debug nowarnings c++}]} {

View File

@ -19,10 +19,7 @@ load_lib compile-support.exp
standard_testfile .cc
if {[skip_cplus_tests]} {
untested "skipping C++ tests"
return
}
require !skip_cplus_tests
if {[prepare_for_testing $testfile $testfile $srcfile \
{debug nowarnings c++}]} {

View File

@ -19,10 +19,7 @@ load_lib compile-support.exp
standard_testfile .cc
if {[skip_cplus_tests]} {
untested "skipping C++ tests"
return
}
require !skip_cplus_tests
if {[prepare_for_testing $testfile $testfile $srcfile \
{debug nowarnings c++}]} {

View File

@ -18,7 +18,7 @@
# This tests that C++ alignof works in gdb, and that it agrees with
# the compiler.
if {[skip_cplus_tests]} { continue }
require !skip_cplus_tests
# The types we're going to test.

View File

@ -19,7 +19,7 @@
# about the field or baseclass being ambiguous is emitted at the right
# times.
if { [skip_cplus_tests] } { return }
require !skip_cplus_tests
standard_testfile .cc

View File

@ -20,7 +20,7 @@
# test running programs
#
if { [skip_cplus_tests] } { continue }
require !skip_cplus_tests
standard_testfile .cc

View File

@ -20,7 +20,7 @@
# test running programs
#
if { [skip_cplus_tests] } { continue }
require !skip_cplus_tests
standard_testfile .cc

View File

@ -17,7 +17,7 @@
# This file is part of the gdb testsuite.
if {[skip_cplus_tests]} { return }
require !skip_cplus_tests
standard_testfile .cc anon-ns2.cc

View File

@ -23,7 +23,7 @@
#
if { [skip_cplus_tests] } { continue }
require !skip_cplus_tests
standard_testfile .cc

View File

@ -21,7 +21,7 @@
# Test G++ has compiled debuginfo without a C++ '&' reference where it should
# not be. GCC Bug 33537.
if { [skip_cplus_tests] } { continue }
require !skip_cplus_tests
standard_testfile .cc

View File

@ -15,7 +15,7 @@
# Test the printing of element indices in C++ arrays.
if {[skip_cplus_tests]} { continue }
require !skip_cplus_tests
set lang c++

View File

@ -15,7 +15,7 @@
# Test the detection and printing of repeated elements in C++ arrays.
if {[skip_cplus_tests]} { continue }
require !skip_cplus_tests
set lang c++

View File

@ -20,7 +20,7 @@
# Test returning bool.
if { [skip_cplus_tests] } { continue }
require !skip_cplus_tests
standard_testfile .cc

View File

@ -58,7 +58,7 @@
standard_testfile .cc
if { [skip_cplus_tests] } { continue }
require !skip_cplus_tests
# CXX11_ABI specifies the value to define _GLIBCXX_USE_CXX11_ABI as.

View File

@ -15,7 +15,7 @@
# This file is part of the gdb testsuite
if {[skip_cplus_tests]} { continue }
require !skip_cplus_tests
standard_testfile .cc breakpoint-locs-2.cc

View File

@ -17,7 +17,7 @@
# This contains tests for breakpoints in C++.
if { [skip_cplus_tests] } { continue }
require !skip_cplus_tests
#
# test running programs

View File

@ -14,7 +14,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
if { [skip_cplus_tests] } { continue }
require !skip_cplus_tests
standard_testfile .cc call-c-1.c
set objfilec [standard_output_file ${testfile}-1.o]

View File

@ -16,7 +16,7 @@
# Test callling a method on a variable that has been put in a
# register.
if { [skip_cplus_tests] } { continue }
require !skip_cplus_tests
load_lib "cp-support.exp"
load_lib dwarf.exp

View File

@ -25,7 +25,7 @@
#
if { [skip_cplus_tests] } { return }
require !skip_cplus_tests
standard_testfile .cc casts03.cc

View File

@ -15,7 +15,7 @@
# This file is part of the gdb testsuite
if {[skip_cplus_tests]} { continue }
require !skip_cplus_tests
standard_testfile .cc

View File

@ -13,7 +13,7 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
if { [skip_cplus_tests] } { return }
require !skip_cplus_tests
standard_testfile .cc

View File

@ -18,7 +18,7 @@
set nl "\[\r\n\]+"
if { [skip_cplus_tests] } { continue }
require !skip_cplus_tests
load_lib "cp-support.exp"

View File

@ -17,7 +17,7 @@
# This file is part of the gdb testsuite.
if {[skip_cplus_tests]} { continue }
require !skip_cplus_tests
# Tests for c++/12273, breakpoint/12803
standard_testfile .cc

View File

@ -15,7 +15,7 @@
# This file is part of the gdb testsuite.
if {[skip_cplus_tests]} { return }
require !skip_cplus_tests
standard_testfile .cc

View File

@ -18,7 +18,7 @@
standard_testfile .cc
append binfile .o
if { [skip_cplus_tests] } { continue }
require !skip_cplus_tests
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" object {c++ debug}] != "" } {
untested "failed to compile"

View File

@ -51,7 +51,7 @@ proc test_class_complete {class expr name matches} {
}
}
if { [skip_cplus_tests] } { continue }
require !skip_cplus_tests
standard_testfile pr9594.cc

View File

@ -15,7 +15,7 @@
# Tests for breakpoint on labels in methods.
if {[skip_cplus_tests]} { continue }
require !skip_cplus_tests
standard_testfile .cc

View File

@ -16,7 +16,7 @@
# This file was written by Fred Fish. (fnf@cygnus.com)
# Adapted for g++ 3.0 ABI by Michael Chastain. (chastain@redhat.com)
if { [skip_cplus_tests] } { continue }
require !skip_cplus_tests
standard_testfile .cc

View File

@ -16,7 +16,7 @@
standard_testfile .cc
if {[skip_cplus_tests]} { return }
require !skip_cplus_tests
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}] } {
return -1

View File

@ -21,7 +21,7 @@
# Call to template instantiations.
if { [skip_cplus_tests] } { return }
require !skip_cplus_tests
standard_testfile cttiadd.cc cttiadd1.cc cttiadd2.cc cttiadd3.cc

View File

@ -15,7 +15,7 @@
# Test "set debug expr 1" on c++ expressions.
if { [skip_cplus_tests] } { continue }
require !skip_cplus_tests
gdb_start
gdb_test_no_output "set language c++"

View File

@ -15,7 +15,7 @@
# This file was written by Fred Fish. (fnf@cygnus.com)
if { [skip_cplus_tests] } { continue }
require !skip_cplus_tests
### The demangling style we last sent to GDB.
set current_demangling_style none

View File

@ -28,7 +28,7 @@ set nl "\[\r\n\]+"
# Start program.
if { [skip_cplus_tests] } { return }
require !skip_cplus_tests
load_lib "cp-support.exp"

View File

@ -18,7 +18,7 @@
# Test that the disassembler correctly demangles C++ function names in
# it's header line.
if {[skip_cplus_tests]} { return }
require !skip_cplus_tests
standard_testfile .cc

View File

@ -13,7 +13,7 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
if { [skip_cplus_tests] } { return }
require !skip_cplus_tests
standard_testfile .cc

View File

@ -21,7 +21,7 @@
# multiple locations and breakpoints are found in
# gdb.base/ena-dis-br.exp.
if { [skip_cplus_tests] } { continue }
require !skip_cplus_tests
standard_testfile .cc

View File

@ -15,7 +15,7 @@
# This file is part of the gdb testsuite
if {[skip_cplus_tests]} { continue }
require !skip_cplus_tests
standard_testfile .cc

View File

@ -15,9 +15,7 @@
standard_testfile .cc
if {[skip_cplus_tests]} {
return -1
}
require !skip_cplus_tests
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
return -1

View File

@ -13,7 +13,7 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
if { [skip_cplus_tests] } { continue }
require !skip_cplus_tests
set srcfile expand-sals.cc
if { [prepare_for_testing "failed to prepare" expand-sals $srcfile {debug c++}] } {

View File

@ -15,7 +15,7 @@
# Test breakpoints on extern "C" functions implemented in C++.
if { [skip_cplus_tests] } { continue }
require !skip_cplus_tests
standard_testfile .cc

View File

@ -13,7 +13,7 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
if { [skip_cplus_tests] } { return }
require !skip_cplus_tests
standard_testfile .cc

View File

@ -28,7 +28,7 @@
# operand.
if { [skip_cplus_tests] } { continue }
require !skip_cplus_tests
standard_testfile .cc

View File

@ -21,7 +21,7 @@
set ws "\[\r\n\t \]*"
set nl "\[\r\n\]+"
if { [skip_cplus_tests] } { return }
require !skip_cplus_tests
#
# test running programs

View File

@ -21,8 +21,7 @@
#
# PR c++/9489.
if { [skip_cplus_tests] } { continue }
if { [skip_shlib_tests] } { continue }
require !skip_cplus_tests !skip_shlib_tests
standard_testfile .cc gdb2384-base.cc

View File

@ -31,7 +31,7 @@
# This test is largely based of gdb.base/callfuncs.exp.
if { [skip_cplus_tests] } { return }
require !skip_cplus_tests
if [target_info exists gdb,nosignals] {
verbose "Skipping gdb2495.exp because of nosignals."

View File

@ -14,7 +14,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
if { [skip_cplus_tests] } { continue }
require !skip_cplus_tests
standard_testfile hang1.cc hang2.cc hang3.cc

View File

@ -18,7 +18,7 @@
# Test expressions which assume an implicit "this" with a qualified
# name.
if {[skip_cplus_tests]} { return }
require !skip_cplus_tests
standard_testfile .cc

View File

@ -20,9 +20,7 @@
load_lib dwarf.exp
if { [skip_cplus_tests] } { return }
require dwarf2_support
require dwarf2_support !skip_cplus_tests
standard_testfile .cc .S
set asm_file [standard_output_file ${srcfile2}]

View File

@ -15,9 +15,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Only test C++ if we are able. Always use C.
if { [skip_cplus_tests] } {
return -1
}
require !skip_cplus_tests
set lang {c++}
set debug nodebug

View File

@ -15,9 +15,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Only test C++ if we are able. Always use C.
if { [skip_cplus_tests] } {
return -1
}
require !skip_cplus_tests
set lang {c++}
set debug debug

View File

@ -20,7 +20,7 @@ set ws "\[\r\n\t \]+"
set nl "\[\r\n\]+"
set vhn "\\$\[0-9\]+"
if { [skip_cplus_tests] } { continue }
require !skip_cplus_tests
load_lib "cp-support.exp"

View File

@ -16,7 +16,7 @@
# This file is part of the gdb testsuite.
# It tests various aspects of iostream that have caused problems for gdb.
if { [skip_cplus_tests] } { return }
require !skip_cplus_tests
standard_testfile .cc

View File

@ -27,7 +27,7 @@ set nl "\[\r\n\]+"
# test running programs
#
if { [skip_cplus_tests] } { return }
require !skip_cplus_tests
standard_testfile .cc

View File

@ -18,7 +18,7 @@
# This file is part of the gdb testsuite
if { [skip_cplus_tests] } { return }
require !skip_cplus_tests
#
# test running programs

View File

@ -19,7 +19,7 @@
# This file is part of the gdb testsuite
if { [skip_cplus_tests] } { return }
require !skip_cplus_tests
#
# test running programs

View File

@ -19,7 +19,7 @@
# passed in registers. This test passes so many structures it is
# hoped that some will need to be placed onto the stack.
if { [skip_cplus_tests] } { return }
require !skip_cplus_tests
standard_testfile .cc

View File

@ -16,7 +16,7 @@
# Test that breakpoints on C++ constructors work, despite the
# fact that gcc generates several versions of constructor function.
if { [skip_cplus_tests] } { return }
require !skip_cplus_tests
standard_testfile .cc

View File

@ -18,7 +18,7 @@
# This test verifies that setting breakpoint on line in inline
# function will fire in all instantiations of that function.
if { [skip_cplus_tests] } { continue }
require !skip_cplus_tests
standard_testfile mb-inline1.cc mb-inline2.cc
set hdrfile "${testfile}.h"

View File

@ -13,7 +13,7 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
if { [skip_cplus_tests] } { continue }
require !skip_cplus_tests
standard_testfile .cc

View File

@ -21,7 +21,7 @@
set vhn "\\$\[0-9\]+"
if { [skip_cplus_tests] } { return }
require !skip_cplus_tests
standard_testfile .cc

View File

@ -30,7 +30,7 @@ proc add {var name params expected {kind {func}}} {
lappend result [list "${method_name}($params)" $expect]
}
if {[skip_cplus_tests]} { return }
require !skip_cplus_tests
# Tests for c++/12266 et al
standard_testfile .cc

View File

@ -32,7 +32,7 @@
# test running programs
#
if { [skip_cplus_tests] } { return }
require !skip_cplus_tests
standard_testfile .cc

View File

@ -18,7 +18,7 @@
# This tests setting a break in an ambiguous c++ method with
# current_language set to c.
if { [skip_cplus_tests] } { return }
require !skip_cplus_tests
standard_testfile .cc

View File

@ -15,7 +15,7 @@
# This file was written by Fred Fish. (fnf@cygnus.com)
if { [skip_cplus_tests] } { continue }
require !skip_cplus_tests
standard_testfile .cc

View File

@ -19,12 +19,8 @@
load_lib dwarf.exp
# Do not run in environments which do not support C++.
if {[skip_cplus_tests]} {
return
}
# This test can only be run on x86-like targets which support DWARF.
require dwarf2_support
require dwarf2_support !skip_cplus_tests
if {![istarget "x86_64-*-*"] || ![is_lp64_target]} {
return 0

View File

@ -25,7 +25,7 @@
if { [skip_cplus_tests] } { return }
require !skip_cplus_tests
standard_testfile .cc namespace1.cc

View File

@ -15,7 +15,7 @@
# Regression test for type printing of private nested classes.
if {[skip_cplus_tests]} { continue }
require !skip_cplus_tests
load_lib "cp-support.exp"

View File

@ -19,7 +19,7 @@
# the corresponding source file. It then walks the nodes of this tree
# to construct input suitable for passing to cp_test_ptype_class.
if {[skip_cplus_tests]} { continue }
require !skip_cplus_tests
load_lib "cp-support.exp"

View File

@ -14,7 +14,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
if { [skip_cplus_tests] } { return }
require !skip_cplus_tests
standard_testfile .cc

View File

@ -15,9 +15,7 @@
standard_testfile exceptprint.cc
if {[skip_cplus_tests]} {
return -1
}
require !skip_cplus_tests
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
return -1

View File

@ -17,7 +17,7 @@
set additional_flags ""
if {[skip_cplus_tests]} { continue }
require !skip_cplus_tests
standard_testfile .cc

View File

@ -18,11 +18,7 @@
load_lib dwarf.exp
require dwarf2_support
if {[skip_cplus_tests]} {
return
}
require dwarf2_support !skip_cplus_tests
standard_testfile .cc nsalias-dw.S

View File

@ -15,7 +15,7 @@
# This file is part of the gdb testsuite.
if {[skip_cplus_tests]} { continue }
require !skip_cplus_tests
standard_testfile .cc

View File

@ -24,7 +24,7 @@ set ws "\[\r\n\t \]+"
set nl "\[\r\n\]+"
if { [skip_cplus_tests] } { continue }
require !skip_cplus_tests
standard_testfile .cc

View File

@ -28,7 +28,7 @@ set timeout 15
# test running programs
#
if { [skip_cplus_tests] } { return }
require !skip_cplus_tests
standard_testfile .cc

View File

@ -52,7 +52,7 @@ proc test_class {class} {
gdb_test "break ${class}::hibob if (a_param == 3)" "Breakpoint (\[0-9\]).*"
}
if { [skip_cplus_tests] } { return }
require !skip_cplus_tests
# Test for c++/11734
standard_testfile ovsrch1.cc ovsrch2.cc ovsrch3.cc ovsrch4.cc

View File

@ -25,10 +25,7 @@
# - have inlined copy ctor
# - have deleted destructor
if {[skip_cplus_tests]} {
untested "c++ test skipped"
return
}
require !skip_cplus_tests
standard_testfile .cc

View File

@ -68,10 +68,7 @@
# The companion test file pass-by-ref-2.exp also contains
# manually-written cases.
if {[skip_cplus_tests]} {
untested "c++ test skipped"
return
}
require !skip_cplus_tests
# The program source is generated in the output directory.
# We use standard_testfile here to set convenience variables.

View File

@ -17,7 +17,7 @@
# Test printing c++ pointer-to-member.
if { [skip_cplus_tests] } { continue }
require !skip_cplus_tests
standard_testfile .cc

View File

@ -18,7 +18,7 @@
# This file is part of the gdb testsuite.
if { [skip_cplus_tests] } { return }
require !skip_cplus_tests
#
# test running programs

View File

@ -17,7 +17,7 @@
# This file is part of the gdb testsuite.
if { [skip_cplus_tests] } { return }
require !skip_cplus_tests
#
# test running programs

View File

@ -20,7 +20,7 @@
# This file is part of the gdb testsuite
if { [skip_cplus_tests] } { return }
require !skip_cplus_tests
#
# test running programs

View File

@ -17,7 +17,7 @@
set nl "\[\r\n\]+"
if { [skip_cplus_tests] } { return }
require !skip_cplus_tests
load_lib "cp-support.exp"

View File

@ -15,7 +15,7 @@
# This file is part of the gdb testsuite
if {[skip_cplus_tests]} { continue }
require !skip_cplus_tests
standard_testfile .cc

View File

@ -15,7 +15,7 @@
# This file is part of the gdb testsuite
if {[skip_cplus_tests]} { continue }
require !skip_cplus_tests
standard_testfile .cc

View File

@ -15,7 +15,7 @@
set nl "\[\r\n\]+"
if { [skip_cplus_tests] } { return }
require !skip_cplus_tests
load_lib "cp-support.exp"

View File

@ -15,7 +15,7 @@
# This file is part of the gdb testsuite.
if { [skip_cplus_tests] } { return }
require !skip_cplus_tests
standard_testfile .cc

Some files were not shown because too many files have changed in this diff Show More