Skip to content

Commit

Permalink
ignore a few tests that run slowly in miri
Browse files Browse the repository at this point in the history
  • Loading branch information
KodrAus committed Oct 15, 2023
1 parent 3f05853 commit 03d1427
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/tests/iter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ use super::*;
use crate::Flags;

#[test]
#[cfg(not(miri))] // Very slow in miri
fn roundtrip() {
for a in 0u8..=255 {
for b in 0u8..=255 {
Expand Down
1 change: 1 addition & 0 deletions src/tests/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ use crate::{
};

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

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

#[cfg(not(miri))]
#[test]
fn pass() {
let t = trybuild::TestCases::new();
Expand Down

0 comments on commit 03d1427

Please sign in to comment.