From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2126) id 7A73D38493CB; Fri, 13 Jan 2023 20:40:01 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7A73D38493CB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1673642401; bh=c3ZzvxL0s0G9cWBQy/xI3JVzCVrlJMO0cHRPucq6Gp8=; h=From:To:Subject:Date:From; b=U1JtWLOXfRICeXD7bhLa3XJHBx333HEWj1eOdfOlY31QB7Y47L3kGIuTUHmH9CccX rbNaoFr/n4rHjFM9pM0DA2UL6cDXwutEOhoUVOtbuLWorWPVY7FubmpHWw9JRofwB0 BYkCGIKBiio5ijSB8OVMifmw1yukWOJetZRpKvc4= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Tom Tromey To: gdb-cvs@sourceware.org Subject: [binutils-gdb] Rename to allow_rust_tests X-Act-Checkin: binutils-gdb X-Git-Author: Tom Tromey X-Git-Refname: refs/heads/master X-Git-Oldrev: d82e5429b532f3cf0a0453800b0347368834f8bc X-Git-Newrev: 3eb4aab7199ae959ab140e8aa29d90ce7bf28d4e Message-Id: <20230113204001.7A73D38493CB@sourceware.org> Date: Fri, 13 Jan 2023 20:40:01 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D3eb4aab7199a= e959ab140e8aa29d90ce7bf28d4e commit 3eb4aab7199ae959ab140e8aa29d90ce7bf28d4e Author: Tom Tromey Date: Sun Jan 8 11:46:36 2023 -0700 Rename to allow_rust_tests =20 This changes skip_rust_tests to invert the sense, and renames it to allow_rust_tests. Diff: --- 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(-) diff --git a/gdb/testsuite/gdb.rust/dwindex.exp b/gdb/testsuite/gdb.rust/dw= index.exp index a617457571f..841db216680 100644 --- a/gdb/testsuite/gdb.rust/dwindex.exp +++ b/gdb/testsuite/gdb.rust/dwindex.exp @@ -16,7 +16,7 @@ # Test that a rustc-produced .debug_aranges can be read. =20 load_lib rust-support.exp -require !skip_rust_tests +require allow_rust_tests =20 standard_testfile .rs =20 diff --git a/gdb/testsuite/gdb.rust/expr.exp b/gdb/testsuite/gdb.rust/expr.= exp index 8fd6b23023f..4a0a48ade62 100644 --- a/gdb/testsuite/gdb.rust/expr.exp +++ b/gdb/testsuite/gdb.rust/expr.exp @@ -17,7 +17,7 @@ # Rust compiler. This serves as a smoke test. =20 load_lib "rust-support.exp" -require !skip_rust_tests +require allow_rust_tests =20 gdb_start =20 diff --git a/gdb/testsuite/gdb.rust/fnfield.exp b/gdb/testsuite/gdb.rust/fn= field.exp index 2f6ddd74828..413104cca64 100644 --- a/gdb/testsuite/gdb.rust/fnfield.exp +++ b/gdb/testsuite/gdb.rust/fnfield.exp @@ -16,7 +16,7 @@ # Test trait object printing. =20 load_lib rust-support.exp -require !skip_rust_tests +require allow_rust_tests =20 standard_testfile .rs if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug rus= t}]} { diff --git a/gdb/testsuite/gdb.rust/generics.exp b/gdb/testsuite/gdb.rust/g= enerics.exp index 5c0c105abe5..41112afd572 100644 --- a/gdb/testsuite/gdb.rust/generics.exp +++ b/gdb/testsuite/gdb.rust/generics.exp @@ -16,7 +16,7 @@ # Test expressions involving generics. =20 load_lib rust-support.exp -require !skip_rust_tests +require allow_rust_tests =20 standard_testfile .rs if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug rus= t}]} { diff --git a/gdb/testsuite/gdb.rust/methods.exp b/gdb/testsuite/gdb.rust/me= thods.exp index dfbebd6bc38..8374ab162ec 100644 --- a/gdb/testsuite/gdb.rust/methods.exp +++ b/gdb/testsuite/gdb.rust/methods.exp @@ -16,7 +16,7 @@ # Test method calls. =20 load_lib rust-support.exp -require !skip_rust_tests +require allow_rust_tests =20 standard_testfile .rs if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug rus= t}]} { diff --git a/gdb/testsuite/gdb.rust/modules.exp b/gdb/testsuite/gdb.rust/mo= dules.exp index 9ab758b5d30..0ad1a4a6b75 100644 --- a/gdb/testsuite/gdb.rust/modules.exp +++ b/gdb/testsuite/gdb.rust/modules.exp @@ -16,7 +16,7 @@ # Test name lookup. =20 load_lib rust-support.exp -require !skip_rust_tests +require allow_rust_tests =20 standard_testfile .rs if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug rus= t}]} { diff --git a/gdb/testsuite/gdb.rust/pp.exp b/gdb/testsuite/gdb.rust/pp.exp index 28ae0545c5a..553bce3c1a9 100644 --- a/gdb/testsuite/gdb.rust/pp.exp +++ b/gdb/testsuite/gdb.rust/pp.exp @@ -17,7 +17,7 @@ =20 load_lib gdb-python.exp load_lib rust-support.exp -require !skip_rust_tests allow_python_tests +require allow_rust_tests allow_python_tests =20 standard_testfile .rs if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug rus= t}]} { diff --git a/gdb/testsuite/gdb.rust/rawids.exp b/gdb/testsuite/gdb.rust/raw= ids.exp index 234b4329f91..976b723833e 100644 --- a/gdb/testsuite/gdb.rust/rawids.exp +++ b/gdb/testsuite/gdb.rust/rawids.exp @@ -16,7 +16,7 @@ # Test raw identifiers. =20 load_lib rust-support.exp -require !skip_rust_tests +require allow_rust_tests =20 set v [split [rust_compiler_version] .] if {[lindex $v 0] =3D=3D 1 && [lindex $v 1] < 30} { diff --git a/gdb/testsuite/gdb.rust/rust-style.exp b/gdb/testsuite/gdb.rust= /rust-style.exp index ed76fbf9760..c942673bddb 100644 --- a/gdb/testsuite/gdb.rust/rust-style.exp +++ b/gdb/testsuite/gdb.rust/rust-style.exp @@ -16,7 +16,7 @@ # Test CLI output styling for Rust. =20 load_lib rust-support.exp -require !skip_rust_tests +require allow_rust_tests =20 save_vars { env(TERM) } { # We need an ANSI-capable terminal to get the output. diff --git a/gdb/testsuite/gdb.rust/simple.exp b/gdb/testsuite/gdb.rust/sim= ple.exp index 5925a4cd12d..25152a35cd0 100644 --- a/gdb/testsuite/gdb.rust/simple.exp +++ b/gdb/testsuite/gdb.rust/simple.exp @@ -16,7 +16,7 @@ # Test expression parsing and evaluation that requires Rust compiler. =20 load_lib rust-support.exp -require !skip_rust_tests +require allow_rust_tests =20 standard_testfile .rs if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug rus= t}]} { diff --git a/gdb/testsuite/gdb.rust/traits.exp b/gdb/testsuite/gdb.rust/tra= its.exp index 63a6df451f8..9aa4cbfc75c 100644 --- a/gdb/testsuite/gdb.rust/traits.exp +++ b/gdb/testsuite/gdb.rust/traits.exp @@ -16,7 +16,7 @@ # Test trait object printing. =20 load_lib rust-support.exp -require !skip_rust_tests +require allow_rust_tests =20 standard_testfile .rs if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug rus= t}]} { diff --git a/gdb/testsuite/gdb.rust/unicode.exp b/gdb/testsuite/gdb.rust/un= icode.exp index aa1ace0608a..2b4766b5553 100644 --- a/gdb/testsuite/gdb.rust/unicode.exp +++ b/gdb/testsuite/gdb.rust/unicode.exp @@ -16,7 +16,7 @@ # Test raw identifiers. =20 load_lib rust-support.exp -require !skip_rust_tests +require allow_rust_tests =20 # Non-ASCII identifiers were allowed starting in 1.53. set v [split [rust_compiler_version] .] diff --git a/gdb/testsuite/gdb.rust/union.exp b/gdb/testsuite/gdb.rust/unio= n.exp index 28b787b38da..5f128c563a3 100644 --- a/gdb/testsuite/gdb.rust/union.exp +++ b/gdb/testsuite/gdb.rust/union.exp @@ -16,7 +16,7 @@ # Test of "union" for Rust. =20 load_lib rust-support.exp -require !skip_rust_tests +require allow_rust_tests =20 standard_testfile .rs if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug rus= t}]} { diff --git a/gdb/testsuite/gdb.rust/unsized.exp b/gdb/testsuite/gdb.rust/un= sized.exp index ac46b2eefac..f81be8a3078 100644 --- a/gdb/testsuite/gdb.rust/unsized.exp +++ b/gdb/testsuite/gdb.rust/unsized.exp @@ -16,7 +16,7 @@ # Test expression parsing and evaluation that requires Rust compiler. =20 load_lib rust-support.exp -require !skip_rust_tests +require allow_rust_tests =20 standard_testfile .rs if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug rus= t}]} { diff --git a/gdb/testsuite/gdb.rust/watch.exp b/gdb/testsuite/gdb.rust/watc= h.exp index 2c0e57db427..83cb41cc1eb 100644 --- a/gdb/testsuite/gdb.rust/watch.exp +++ b/gdb/testsuite/gdb.rust/watch.exp @@ -16,7 +16,7 @@ # Test watch -location with Rust. =20 load_lib rust-support.exp -require !skip_rust_tests +require allow_rust_tests =20 standard_testfile .rs if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug rus= t}]} { diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp index b6eff66f94d..9ce7c6b3aaf 100644 --- a/gdb/testsuite/lib/gdb.exp +++ b/gdb/testsuite/lib/gdb.exp @@ -2427,10 +2427,10 @@ proc allow_d_tests {} { return 1 } =20 -# 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 } =20 # 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 =3D=3D "-m32" } { - return 1 + return 0 } } } =20 - return 0 + return 1 } =20 # Return a 1 for configurations that support Python scripting.