Skip to content

Commit 03d1427

Browse files
committed
ignore a few tests that run slowly in miri
1 parent 3f05853 commit 03d1427

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

src/tests/iter.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ use super::*;
33
use crate::Flags;
44

55
#[test]
6+
#[cfg(not(miri))] // Very slow in miri
67
fn roundtrip() {
78
for a in 0u8..=255 {
89
for b in 0u8..=255 {

src/tests/parser.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ use crate::{
66
};
77

88
#[test]
9+
#[cfg(not(miri))] // Very slow in miri
910
fn roundtrip() {
1011
let mut s = String::new();
1112

tests/compile.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,15 @@
22
// an impossible build between error messages emitted on various channels.
33
// Since https://github.com/dtolnay/trybuild/pull/170 we always need to have a
44
// `stderr` file for each test so we can't simply ignore the output on different channels.
5+
#[cfg(not(miri))]
56
#[rustversion::attr(beta, test)]
67
#[allow(dead_code)]
78
fn fail() {
89
let t = trybuild::TestCases::new();
910
t.compile_fail("tests/compile-fail/**/*.rs");
1011
}
1112

13+
#[cfg(not(miri))]
1214
#[test]
1315
fn pass() {
1416
let t = trybuild::TestCases::new();

0 commit comments

Comments
 (0)