# const pointers to const vars
# with mixed types.
-require !skip_ctf_tests
+require allow_ctf_tests
standard_testfile .c
# This file is a subset of ptype.exp written by Rob Savoye. (rob@cygnus.com)
-require !skip_ctf_tests
+require allow_ctf_tests
# Some tests require GCC.
set gcc_compiled [is_c_compiler_gcc]
# Build up the set of debug formats for which we will run this test.
set specs { {dwarf {debug}} }
-if ![skip_ctf_tests] {
+if {[allow_ctf_tests]} {
lappend specs [list ctf $ctf_opts]
}
# Build up the set of debug formats for which we will run this test.
set specs { {dwarf {debug}} }
-if ![skip_ctf_tests] {
+if {[allow_ctf_tests]} {
lappend specs [list ctf $ctf_opts]
}
# This file is a subset of ptype.exp written by Rob Savoye. (rob@cygnus.com)
-require !skip_ctf_tests
+require allow_ctf_tests
standard_testfile cross-tu-cyclic-1.c cross-tu-cyclic-2.c \
cross-tu-cyclic-3.c cross-tu-cyclic-4.c
# 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_ctf_tests
+require allow_ctf_tests
if [target_info exists no_long_long] {
set exec_opts [list debug additional_flags=-DNO_LONG_LONG]
# This file is a subset of ptype.exp written by Rob Savoye. (rob@cygnus.com)
-require !skip_ctf_tests
+require allow_ctf_tests
standard_testfile ctf-a.c ctf-b.c ctf-c.c
# flag? If not then we should skip these tests. We should also
# skip them if libctf was explicitly disabled.
-gdb_caching_proc skip_ctf_tests {
+gdb_caching_proc allow_ctf_tests {
global enable_libctf
if {$enable_libctf eq "no"} {
- return 1
+ return 0
}
set can_ctf [gdb_can_simple_compile ctfdebug {
}
} executable "additional_flags=-gctf"]
- return [expr {!$can_ctf}]
+ return $can_ctf
}
# Return 1 if compiler supports -gstatement-frontiers. Otherwise,