From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2126) id 0B52E3858425; Fri, 13 Jan 2023 20:34:52 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0B52E3858425 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1673642092; bh=HgJ7S4V81EhdzTr+1tEZNJEKDNDld4cIn6cHZHe57lk=; h=From:To:Subject:Date:From; b=C8OL8ahUQGQBHnC3+S2/VPe/6yHpWHAo0EB4qvDEGFA1Ucus1yT8EiVv1oNgAjDt1 hmhhNlyL4golfXOeeDjb2G13OUJTdSYeioyeDAjaRZc3Id2B3YiEtQBz2SZqx2f+Io 29GRvFfxYqwnbtPyQ36UU5OPRjcs7Zefa1oYelsk= 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] Use require !skip_rust_tests X-Act-Checkin: binutils-gdb X-Git-Author: Tom Tromey X-Git-Refname: refs/heads/master X-Git-Oldrev: c89196229b8aa7966b148b7719f795b9b2db8b02 X-Git-Newrev: a9145b105e28caeded3ea8135e35e5984fa10f37 Message-Id: <20230113203452.0B52E3858425@sourceware.org> Date: Fri, 13 Jan 2023 20:34:52 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3Da9145b105e28= caeded3ea8135e35e5984fa10f37 commit a9145b105e28caeded3ea8135e35e5984fa10f37 Author: Tom Tromey Date: Tue Dec 13 16:08:13 2022 -0700 Use require !skip_rust_tests =20 This changes some tests to use "require !skip_rust_tests". Diff: --- gdb/testsuite/gdb.rust/dwindex.exp | 4 +--- gdb/testsuite/gdb.rust/expr.exp | 2 +- gdb/testsuite/gdb.rust/fnfield.exp | 4 +--- gdb/testsuite/gdb.rust/generics.exp | 4 +--- gdb/testsuite/gdb.rust/methods.exp | 4 +--- gdb/testsuite/gdb.rust/modules.exp | 4 +--- gdb/testsuite/gdb.rust/pp.exp | 4 +--- gdb/testsuite/gdb.rust/rawids.exp | 4 +--- gdb/testsuite/gdb.rust/rust-style.exp | 4 +--- gdb/testsuite/gdb.rust/simple.exp | 4 +--- gdb/testsuite/gdb.rust/traits.exp | 4 +--- gdb/testsuite/gdb.rust/unicode.exp | 4 +--- gdb/testsuite/gdb.rust/union.exp | 4 +--- gdb/testsuite/gdb.rust/unsized.exp | 4 +--- gdb/testsuite/gdb.rust/watch.exp | 4 +--- 15 files changed, 15 insertions(+), 43 deletions(-) diff --git a/gdb/testsuite/gdb.rust/dwindex.exp b/gdb/testsuite/gdb.rust/dw= index.exp index 4f05cb9eca8..a617457571f 100644 --- a/gdb/testsuite/gdb.rust/dwindex.exp +++ b/gdb/testsuite/gdb.rust/dwindex.exp @@ -16,9 +16,7 @@ # Test that a rustc-produced .debug_aranges can be read. =20 load_lib rust-support.exp -if {[skip_rust_tests]} { - return -} +require !skip_rust_tests =20 standard_testfile .rs =20 diff --git a/gdb/testsuite/gdb.rust/expr.exp b/gdb/testsuite/gdb.rust/expr.= exp index d67199eae68..8fd6b23023f 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" -if {[skip_rust_tests]} { return } +require !skip_rust_tests =20 gdb_start =20 diff --git a/gdb/testsuite/gdb.rust/fnfield.exp b/gdb/testsuite/gdb.rust/fn= field.exp index 21f0facd4c3..2f6ddd74828 100644 --- a/gdb/testsuite/gdb.rust/fnfield.exp +++ b/gdb/testsuite/gdb.rust/fnfield.exp @@ -16,9 +16,7 @@ # Test trait object printing. =20 load_lib rust-support.exp -if {[skip_rust_tests]} { - return -} +require !skip_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 fa0f7b9f813..5c0c105abe5 100644 --- a/gdb/testsuite/gdb.rust/generics.exp +++ b/gdb/testsuite/gdb.rust/generics.exp @@ -16,9 +16,7 @@ # Test expressions involving generics. =20 load_lib rust-support.exp -if {[skip_rust_tests]} { - return -} +require !skip_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 e57ef2fe21b..dfbebd6bc38 100644 --- a/gdb/testsuite/gdb.rust/methods.exp +++ b/gdb/testsuite/gdb.rust/methods.exp @@ -16,9 +16,7 @@ # Test method calls. =20 load_lib rust-support.exp -if {[skip_rust_tests]} { - return -} +require !skip_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 983fbd1f0a3..9ab758b5d30 100644 --- a/gdb/testsuite/gdb.rust/modules.exp +++ b/gdb/testsuite/gdb.rust/modules.exp @@ -16,9 +16,7 @@ # Test name lookup. =20 load_lib rust-support.exp -if {[skip_rust_tests]} { - return -} +require !skip_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 b077c76a3ef..a456afc1b35 100644 --- a/gdb/testsuite/gdb.rust/pp.exp +++ b/gdb/testsuite/gdb.rust/pp.exp @@ -17,9 +17,7 @@ =20 load_lib gdb-python.exp load_lib rust-support.exp -if {[skip_rust_tests]} { - return -} +require !skip_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/rawids.exp b/gdb/testsuite/gdb.rust/raw= ids.exp index 0570697fa6e..234b4329f91 100644 --- a/gdb/testsuite/gdb.rust/rawids.exp +++ b/gdb/testsuite/gdb.rust/rawids.exp @@ -16,9 +16,7 @@ # Test raw identifiers. =20 load_lib rust-support.exp -if {[skip_rust_tests]} { - return -} +require !skip_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 0a5ff5ecfb4..ed76fbf9760 100644 --- a/gdb/testsuite/gdb.rust/rust-style.exp +++ b/gdb/testsuite/gdb.rust/rust-style.exp @@ -16,9 +16,7 @@ # Test CLI output styling for Rust. =20 load_lib rust-support.exp -if {[skip_rust_tests]} { - return -} +require !skip_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 3f698f12dcd..7314aab395c 100644 --- a/gdb/testsuite/gdb.rust/simple.exp +++ b/gdb/testsuite/gdb.rust/simple.exp @@ -16,9 +16,7 @@ # Test expression parsing and evaluation that requires Rust compiler. =20 load_lib rust-support.exp -if {[skip_rust_tests]} { - return -} +require !skip_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 c3d1b524d7f..63a6df451f8 100644 --- a/gdb/testsuite/gdb.rust/traits.exp +++ b/gdb/testsuite/gdb.rust/traits.exp @@ -16,9 +16,7 @@ # Test trait object printing. =20 load_lib rust-support.exp -if {[skip_rust_tests]} { - return -} +require !skip_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 63ed8d1250c..aa1ace0608a 100644 --- a/gdb/testsuite/gdb.rust/unicode.exp +++ b/gdb/testsuite/gdb.rust/unicode.exp @@ -16,9 +16,7 @@ # Test raw identifiers. =20 load_lib rust-support.exp -if {[skip_rust_tests]} { - return -} +require !skip_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 baf47d2651f..28b787b38da 100644 --- a/gdb/testsuite/gdb.rust/union.exp +++ b/gdb/testsuite/gdb.rust/union.exp @@ -16,9 +16,7 @@ # Test of "union" for Rust. =20 load_lib rust-support.exp -if {[skip_rust_tests]} { - return -} +require !skip_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 ca45914444c..ac46b2eefac 100644 --- a/gdb/testsuite/gdb.rust/unsized.exp +++ b/gdb/testsuite/gdb.rust/unsized.exp @@ -16,9 +16,7 @@ # Test expression parsing and evaluation that requires Rust compiler. =20 load_lib rust-support.exp -if {[skip_rust_tests]} { - return -} +require !skip_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 b709c00e394..2c0e57db427 100644 --- a/gdb/testsuite/gdb.rust/watch.exp +++ b/gdb/testsuite/gdb.rust/watch.exp @@ -16,9 +16,7 @@ # Test watch -location with Rust. =20 load_lib rust-support.exp -if {[skip_rust_tests]} { - return -} +require !skip_rust_tests =20 standard_testfile .rs if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug rus= t}]} {