aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/lib
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2023-01-08 11:46:36 -0700
committerTom Tromey <tom@tromey.com>2023-01-13 13:18:58 -0700
commit3eb4aab7199ae959ab140e8aa29d90ce7bf28d4e (patch)
tree61de19e207d242e31d8627829a8ad6a9734479dd /gdb/testsuite/lib
parentd82e5429b532f3cf0a0453800b0347368834f8bc (diff)
downloadgdb-3eb4aab7199ae959ab140e8aa29d90ce7bf28d4e.zip
gdb-3eb4aab7199ae959ab140e8aa29d90ce7bf28d4e.tar.gz
gdb-3eb4aab7199ae959ab140e8aa29d90ce7bf28d4e.tar.bz2
Rename to allow_rust_tests
This changes skip_rust_tests to invert the sense, and renames it to allow_rust_tests.
Diffstat (limited to 'gdb/testsuite/lib')
-rw-r--r--gdb/testsuite/lib/gdb.exp10
1 files changed, 5 insertions, 5 deletions
diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp
index b6eff66..9ce7c6b 100644
--- a/gdb/testsuite/lib/gdb.exp
+++ b/gdb/testsuite/lib/gdb.exp
@@ -2427,10 +2427,10 @@ proc allow_d_tests {} {
return 1
}
-# Return 1 to skip Rust tests, 0 to try them.
-proc skip_rust_tests {} {
+# Return 1 to try Rust tests, 0 to skip them.
+proc allow_rust_tests {} {
if { ![isnative] } {
- return 1
+ return 0
}
# The rust compiler does not support "-m32", skip.
@@ -2439,12 +2439,12 @@ proc skip_rust_tests {} {
if {[board_info $board exists multilib_flags]} {
foreach flag [board_info $board multilib_flags] {
if { $flag == "-m32" } {
- return 1
+ return 0
}
}
}
- return 0
+ return 1
}
# Return a 1 for configurations that support Python scripting.