Skip to content

Commit 6a4363f

Browse files
powerboat9P-E-P
authored andcommitted
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 <[email protected]>
1 parent 8d0c119 commit 6a4363f

File tree

2 files changed

+19
-4
lines changed

2 files changed

+19
-4
lines changed

gcc/testsuite/rust/compile/nr2/compile.exp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@
1414
# along with GCC; see the file COPYING3. If not see
1515
# <http://www.gnu.org/licenses/>.
1616

17-
# Compile tests, no torture testing, for name resolution 2.0
18-
#
19-
# These tests raise errors in the front end; torture testing doesn't apply.
17+
# Run compile tests with name resolution 2.0 enabled
2018

2119
# Load support procs.
2220
load_lib rust-dg.exp
@@ -44,7 +42,7 @@ namespace eval rust-nr2-ns {
4442
# Run tests in directories
4543
# Manually specifying these, in case some other test file
4644
# does something weird
47-
set test_dirs {{} {macros builtin} {macros mbe} {macros proc}}
45+
set test_dirs {{} {macros builtin} {macros mbe} {macros proc} {torture}}
4846

4947
set tests_expect_ok ""
5048
set tests_expect_err ""

gcc/testsuite/rust/compile/nr2/exclude

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,21 @@ for-loop2.rs
5050
issue-3403.rs
5151
derive-eq-invalid.rs
5252
derive-hash1.rs
53+
torture/alt_patterns1.rs
54+
torture/builtin_abort.rs
55+
torture/impl_block3.rs
56+
torture/issue-1434.rs
57+
torture/loop4.rs
58+
torture/loop8.rs
59+
torture/methods1.rs
60+
torture/methods2.rs
61+
torture/methods3.rs
62+
torture/name_resolve1.rs
63+
torture/nested_struct1.rs
64+
torture/struct_init_3.rs
65+
torture/uninit-intrinsic-1.rs
66+
torture/generics1.rs
67+
torture/generics10.rs
68+
torture/generics13.rs
69+
torture/generics6.rs
5370
# please don't delete the trailing newline

0 commit comments

Comments
 (0)