aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2023-01-08 10:48:33 -0700
committerTom Tromey <tom@tromey.com>2023-01-13 13:18:57 -0700
commit30ce6aa427da49fa944de6024387e9ab66f5db11 (patch)
tree7666fdc91509bcc9e565c827bdf2f8ef9448fce7 /gdb/testsuite
parent0b94d2b9aa06bcb6d1141e61d36c3a99620861fe (diff)
downloadgdb-30ce6aa427da49fa944de6024387e9ab66f5db11.zip
gdb-30ce6aa427da49fa944de6024387e9ab66f5db11.tar.gz
gdb-30ce6aa427da49fa944de6024387e9ab66f5db11.tar.bz2
Rename to allow_ctf_tests
This changes skip_ctf_tests to invert the sense, and renames it to allow_ctf_tests.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r--gdb/testsuite/gdb.base/ctf-constvars.exp2
-rw-r--r--gdb/testsuite/gdb.base/ctf-ptype.exp2
-rw-r--r--gdb/testsuite/gdb.base/cvexpr.exp2
-rw-r--r--gdb/testsuite/gdb.base/whatis.exp2
-rw-r--r--gdb/testsuite/gdb.ctf/cross-tu-cyclic.exp2
-rw-r--r--gdb/testsuite/gdb.ctf/funcreturn.exp2
-rw-r--r--gdb/testsuite/gdb.ctf/multi.exp2
-rw-r--r--gdb/testsuite/lib/gdb.exp6
8 files changed, 10 insertions, 10 deletions
diff --git a/gdb/testsuite/gdb.base/ctf-constvars.exp b/gdb/testsuite/gdb.base/ctf-constvars.exp
index 7737401..7b3c0f6 100644
--- a/gdb/testsuite/gdb.base/ctf-constvars.exp
+++ b/gdb/testsuite/gdb.base/ctf-constvars.exp
@@ -24,7 +24,7 @@
# const pointers to const vars
# with mixed types.
-require !skip_ctf_tests
+require allow_ctf_tests
standard_testfile .c
diff --git a/gdb/testsuite/gdb.base/ctf-ptype.exp b/gdb/testsuite/gdb.base/ctf-ptype.exp
index 4010cf4..4a81993 100644
--- a/gdb/testsuite/gdb.base/ctf-ptype.exp
+++ b/gdb/testsuite/gdb.base/ctf-ptype.exp
@@ -15,7 +15,7 @@
# 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]
diff --git a/gdb/testsuite/gdb.base/cvexpr.exp b/gdb/testsuite/gdb.base/cvexpr.exp
index 3d78936..bbaa7d4 100644
--- a/gdb/testsuite/gdb.base/cvexpr.exp
+++ b/gdb/testsuite/gdb.base/cvexpr.exp
@@ -497,7 +497,7 @@ lappend ctf_opts ldflags=-Wl,--strip-debug
# 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]
}
diff --git a/gdb/testsuite/gdb.base/whatis.exp b/gdb/testsuite/gdb.base/whatis.exp
index 2da9aec..3736e78 100644
--- a/gdb/testsuite/gdb.base/whatis.exp
+++ b/gdb/testsuite/gdb.base/whatis.exp
@@ -592,7 +592,7 @@ lappend ctf_opts ldflags=-Wl,--ctf-variables
# 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]
}
diff --git a/gdb/testsuite/gdb.ctf/cross-tu-cyclic.exp b/gdb/testsuite/gdb.ctf/cross-tu-cyclic.exp
index 4ce178a..0292e39 100644
--- a/gdb/testsuite/gdb.ctf/cross-tu-cyclic.exp
+++ b/gdb/testsuite/gdb.ctf/cross-tu-cyclic.exp
@@ -15,7 +15,7 @@
# 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
diff --git a/gdb/testsuite/gdb.ctf/funcreturn.exp b/gdb/testsuite/gdb.ctf/funcreturn.exp
index a65a1cb..64ed031 100644
--- a/gdb/testsuite/gdb.ctf/funcreturn.exp
+++ b/gdb/testsuite/gdb.ctf/funcreturn.exp
@@ -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/>.
-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]
diff --git a/gdb/testsuite/gdb.ctf/multi.exp b/gdb/testsuite/gdb.ctf/multi.exp
index 0afbdc5..c82d1b9 100644
--- a/gdb/testsuite/gdb.ctf/multi.exp
+++ b/gdb/testsuite/gdb.ctf/multi.exp
@@ -15,7 +15,7 @@
# 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
diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp
index b1d0e7a..e2feebf 100644
--- a/gdb/testsuite/lib/gdb.exp
+++ b/gdb/testsuite/lib/gdb.exp
@@ -8522,11 +8522,11 @@ proc cmp_binary_files { file1 file2 } {
# 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 {
@@ -8535,7 +8535,7 @@ gdb_caching_proc skip_ctf_tests {
}
} executable "additional_flags=-gctf"]
- return [expr {!$can_ctf}]
+ return $can_ctf
}
# Return 1 if compiler supports -gstatement-frontiers. Otherwise,