aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2023-01-08 10:49:20 -0700
committerTom Tromey <tom@tromey.com>2023-01-13 13:18:57 -0700
commit112e10e2e0067ef488bef8f02eeaf86ff9bd5dca (patch)
tree32358296ae38dbbbdfa4f0008e7fb9be116c287e
parent30ce6aa427da49fa944de6024387e9ab66f5db11 (diff)
downloadgdb-112e10e2e0067ef488bef8f02eeaf86ff9bd5dca.zip
gdb-112e10e2e0067ef488bef8f02eeaf86ff9bd5dca.tar.gz
gdb-112e10e2e0067ef488bef8f02eeaf86ff9bd5dca.tar.bz2
Rename to allow_debuginfod_tests
This changes skip_debuginfod_tests to invert the sense, and renames it to allow_debuginfod_tests.
-rw-r--r--gdb/testsuite/gdb.debuginfod/fetch_src_and_symbols.exp2
-rw-r--r--gdb/testsuite/lib/debuginfod-support.exp14
2 files changed, 8 insertions, 8 deletions
diff --git a/gdb/testsuite/gdb.debuginfod/fetch_src_and_symbols.exp b/gdb/testsuite/gdb.debuginfod/fetch_src_and_symbols.exp
index e2c77eb..c9cd8a3 100644
--- a/gdb/testsuite/gdb.debuginfod/fetch_src_and_symbols.exp
+++ b/gdb/testsuite/gdb.debuginfod/fetch_src_and_symbols.exp
@@ -20,7 +20,7 @@ standard_testfile
load_lib dwarf.exp
load_lib debuginfod-support.exp
-require !skip_debuginfod_tests
+require allow_debuginfod_tests
set sourcetmp [standard_output_file tmp-${srcfile}]
set outputdir [standard_output_file {}]
diff --git a/gdb/testsuite/lib/debuginfod-support.exp b/gdb/testsuite/lib/debuginfod-support.exp
index ad156f2..50a8b51 100644
--- a/gdb/testsuite/lib/debuginfod-support.exp
+++ b/gdb/testsuite/lib/debuginfod-support.exp
@@ -15,20 +15,20 @@
# Helper functions to make it easier to write debuginfod tests.
-# Return true if the debuginfod tests should be skipped, otherwise, return
+# Return true if the debuginfod tests should be run, otherwise, return
# false.
-proc skip_debuginfod_tests {} {
+proc allow_debuginfod_tests {} {
if [is_remote host] {
- return true
+ return false
}
if { [which debuginfod] == 0 } {
- return true
+ return false
}
if { [which curl] == 0 } {
untested "cannot find curl"
- return true
+ return false
}
# Skip testing if gdb was not configured with debuginfod.
@@ -39,10 +39,10 @@ proc skip_debuginfod_tests {} {
if { [string first "with-debuginfod" \
[eval exec $::GDB --quiet $::INTERNAL_GDBFLAGS \
--configuration]] == -1 } {
- return true
+ return false
}
- return false
+ return true
}
# Create two directories within the current output directory. One directory