From: Owen Avery Date: Sun, 2 Mar 2025 23:54:37 +0000 (-0500) Subject: gccrs: nr2.0: Check compile/torture/*.rs tests X-Git-Tag: basepoints/gcc-16~698 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7107f9261f7254a951ca9a8d99002f2fa2b32f89;p=thirdparty%2Fgcc.git gccrs: nr2.0: Check compile/torture/*.rs tests gcc/testsuite/ChangeLog: * rust/compile/nr2/compile.exp: Adjust to cover tests in the torture subdirectory. * rust/compile/nr2/exclude: Add entries. Signed-off-by: Owen Avery --- diff --git a/gcc/testsuite/rust/compile/nr2/compile.exp b/gcc/testsuite/rust/compile/nr2/compile.exp index f2724f6c454..35637f11ee8 100644 --- a/gcc/testsuite/rust/compile/nr2/compile.exp +++ b/gcc/testsuite/rust/compile/nr2/compile.exp @@ -14,9 +14,7 @@ # along with GCC; see the file COPYING3. If not see # . -# Compile tests, no torture testing, for name resolution 2.0 -# -# These tests raise errors in the front end; torture testing doesn't apply. +# Run compile tests with name resolution 2.0 enabled # Load support procs. load_lib rust-dg.exp @@ -44,7 +42,7 @@ namespace eval rust-nr2-ns { # Run tests in directories # Manually specifying these, in case some other test file # does something weird - set test_dirs {{} {macros builtin} {macros mbe} {macros proc}} + set test_dirs {{} {macros builtin} {macros mbe} {macros proc} {torture}} set tests_expect_ok "" set tests_expect_err "" diff --git a/gcc/testsuite/rust/compile/nr2/exclude b/gcc/testsuite/rust/compile/nr2/exclude index 8aaec5d3b22..d36c24b95e3 100644 --- a/gcc/testsuite/rust/compile/nr2/exclude +++ b/gcc/testsuite/rust/compile/nr2/exclude @@ -50,4 +50,21 @@ for-loop2.rs issue-3403.rs derive-eq-invalid.rs derive-hash1.rs +torture/alt_patterns1.rs +torture/builtin_abort.rs +torture/impl_block3.rs +torture/issue-1434.rs +torture/loop4.rs +torture/loop8.rs +torture/methods1.rs +torture/methods2.rs +torture/methods3.rs +torture/name_resolve1.rs +torture/nested_struct1.rs +torture/struct_init_3.rs +torture/uninit-intrinsic-1.rs +torture/generics1.rs +torture/generics10.rs +torture/generics13.rs +torture/generics6.rs # please don't delete the trailing newline