Skip to content

Commit

Permalink
Skip a test on macOS due to unreliable MIR
Browse files Browse the repository at this point in the history
  • Loading branch information
fpoli committed Mar 26, 2024
1 parent c76e1ca commit 3822e5c
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions analysis/tests/test_analysis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,24 +59,28 @@ fn test_runner(_tests: &[&()]) {
"tests/test_cases/maybe_borrowed",
vec!["--analysis=MaybeBorrowedAnalysis".into()],
);
run_tests(
"ui",
"tests/test_cases/definitely_accessible",
vec!["--analysis=DefinitelyAccessibleAnalysis".into()],
);
run_tests(
"ui",
"tests/test_cases/definitely_blocked",
vec!["--analysis=DefinitelyUnreachableAnalysis".into()],
);
run_tests(
"ui",
"tests/test_cases/framing",
vec!["--analysis=FramingAnalysis".into()],
);
run_tests(
"ui",
"tests/test_cases/locally_shared",
vec!["--analysis=LocallySharedAnalysis".into()],
);
// These tests are disabled because on macOS the compiler generates slightly different MIRs
// than on Linux and Windows, which causes some tests (`mutex*.rs` and `drop.rs`) to fail.
if !cfg!(target_os = "macos") {
run_tests(
"ui",
"tests/test_cases/definitely_accessible",
vec!["--analysis=DefinitelyAccessibleAnalysis".into()],
);
run_tests(
"ui",
"tests/test_cases/framing",
vec!["--analysis=FramingAnalysis".into()],
);
}
}

0 comments on commit 3822e5c

Please sign in to comment.