aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/lib
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2023-01-08 11:47:51 -0700
committerTom Tromey <tom@tromey.com>2023-01-13 13:18:58 -0700
commitd6195dc9b1eecc358100d6f4e8a611a0b563c4f4 (patch)
treea2f91f1c2f0648f4c4e5e87d5cd0885c32a98949 /gdb/testsuite/lib
parent3eb4aab7199ae959ab140e8aa29d90ce7bf28d4e (diff)
downloadgdb-d6195dc9b1eecc358100d6f4e8a611a0b563c4f4.zip
gdb-d6195dc9b1eecc358100d6f4e8a611a0b563c4f4.tar.gz
gdb-d6195dc9b1eecc358100d6f4e8a611a0b563c4f4.tar.bz2
Rename to allow_shlib_tests
This changes skip_shlib_tests to invert the sense, and renames it to allow_shlib_tests.
Diffstat (limited to 'gdb/testsuite/lib')
-rw-r--r--gdb/testsuite/lib/gdb.exp12
1 files changed, 6 insertions, 6 deletions
diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp
index 9ce7c6b..c989d9e 100644
--- a/gdb/testsuite/lib/gdb.exp
+++ b/gdb/testsuite/lib/gdb.exp
@@ -2454,12 +2454,12 @@ gdb_caching_proc allow_python_tests {
return [expr {[string first "--with-python" $output] != -1}]
}
-# Return a 1 if we should skip shared library tests.
+# Return a 1 if we should run shared library tests.
-proc skip_shlib_tests {} {
+proc allow_shlib_tests {} {
# Run the shared library tests on native systems.
if {[isnative]} {
- return 0
+ return 1
}
# An abbreviated list of remote targets where we should be able to
@@ -2470,10 +2470,10 @@ proc skip_shlib_tests {} {
|| [istarget *-*-mingw*]
|| [istarget *-*-cygwin*]
|| [istarget *-*-pe*])} {
- return 0
+ return 1
}
- return 1
+ return 0
}
# Return 1 if we should run dlmopen tests, 0 if we should not.
@@ -2482,7 +2482,7 @@ gdb_caching_proc allow_dlmopen_tests {
global srcdir subdir gdb_prompt inferior_exited_re
# We need shared library support.
- if { [skip_shlib_tests] } {
+ if { ![allow_shlib_tests] } {
return 0
}