This changes skip_rust_tests to invert the sense, and renames it to
allow_rust_tests.
---
gdb/testsuite/gdb.rust/dwindex.exp | 2 +-
gdb/testsuite/gdb.rust/expr.exp | 2 +-
gdb/testsuite/gdb.rust/fnfield.exp | 2 +-
gdb/testsuite/gdb.rust/generics.exp | 2 +-
gdb/testsuite/gdb.rust/methods.exp | 2 +-
gdb/testsuite/gdb.rust/modules.exp | 2 +-
gdb/testsuite/gdb.rust/pp.exp | 2 +-
gdb/testsuite/gdb.rust/rawids.exp | 2 +-
gdb/testsuite/gdb.rust/rust-style.exp | 2 +-
gdb/testsuite/gdb.rust/simple.exp | 2 +-
gdb/testsuite/gdb.rust/traits.exp | 2 +-
gdb/testsuite/gdb.rust/unicode.exp | 2 +-
gdb/testsuite/gdb.rust/union.exp | 2 +-
gdb/testsuite/gdb.rust/unsized.exp | 2 +-
gdb/testsuite/gdb.rust/watch.exp | 2 +-
gdb/testsuite/lib/gdb.exp | 10 +++++-----
16 files changed, 20 insertions(+), 20 deletions(-)
@@ -16,7 +16,7 @@
# Test that a rustc-produced .debug_aranges can be read.
load_lib rust-support.exp
-require !skip_rust_tests
+require allow_rust_tests
standard_testfile .rs
@@ -17,7 +17,7 @@
# Rust compiler. This serves as a smoke test.
load_lib "rust-support.exp"
-require !skip_rust_tests
+require allow_rust_tests
gdb_start
@@ -16,7 +16,7 @@
# Test trait object printing.
load_lib rust-support.exp
-require !skip_rust_tests
+require allow_rust_tests
standard_testfile .rs
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug rust}]} {
@@ -16,7 +16,7 @@
# Test expressions involving generics.
load_lib rust-support.exp
-require !skip_rust_tests
+require allow_rust_tests
standard_testfile .rs
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug rust}]} {
@@ -16,7 +16,7 @@
# Test method calls.
load_lib rust-support.exp
-require !skip_rust_tests
+require allow_rust_tests
standard_testfile .rs
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug rust}]} {
@@ -16,7 +16,7 @@
# Test name lookup.
load_lib rust-support.exp
-require !skip_rust_tests
+require allow_rust_tests
standard_testfile .rs
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug rust}]} {
@@ -17,7 +17,7 @@
load_lib gdb-python.exp
load_lib rust-support.exp
-require !skip_rust_tests allow_python_tests
+require allow_rust_tests allow_python_tests
standard_testfile .rs
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug rust}]} {
@@ -16,7 +16,7 @@
# Test raw identifiers.
load_lib rust-support.exp
-require !skip_rust_tests
+require allow_rust_tests
set v [split [rust_compiler_version] .]
if {[lindex $v 0] == 1 && [lindex $v 1] < 30} {
@@ -16,7 +16,7 @@
# Test CLI output styling for Rust.
load_lib rust-support.exp
-require !skip_rust_tests
+require allow_rust_tests
save_vars { env(TERM) } {
# We need an ANSI-capable terminal to get the output.
@@ -16,7 +16,7 @@
# Test expression parsing and evaluation that requires Rust compiler.
load_lib rust-support.exp
-require !skip_rust_tests
+require allow_rust_tests
standard_testfile .rs
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug rust}]} {
@@ -16,7 +16,7 @@
# Test trait object printing.
load_lib rust-support.exp
-require !skip_rust_tests
+require allow_rust_tests
standard_testfile .rs
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug rust}]} {
@@ -16,7 +16,7 @@
# Test raw identifiers.
load_lib rust-support.exp
-require !skip_rust_tests
+require allow_rust_tests
# Non-ASCII identifiers were allowed starting in 1.53.
set v [split [rust_compiler_version] .]
@@ -16,7 +16,7 @@
# Test of "union" for Rust.
load_lib rust-support.exp
-require !skip_rust_tests
+require allow_rust_tests
standard_testfile .rs
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug rust}]} {
@@ -16,7 +16,7 @@
# Test expression parsing and evaluation that requires Rust compiler.
load_lib rust-support.exp
-require !skip_rust_tests
+require allow_rust_tests
standard_testfile .rs
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug rust}]} {
@@ -16,7 +16,7 @@
# Test watch -location with Rust.
load_lib rust-support.exp
-require !skip_rust_tests
+require allow_rust_tests
standard_testfile .rs
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug rust}]} {
@@ -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.