Skip to content

Commit

Permalink
Disable Clippy's 5041_allow_dev_build test on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
smoelius committed Sep 13, 2023
1 parent 6809310 commit e9cf2b3
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions examples/testing/clippy/tests/ui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,17 @@ fn ui() {
// let src_base = tempdir.path().join("tests/ui");
// adjust_macro_use_imports_test(&src_base).unwrap();

// smoelius: The `5041_allow_dev_build` test is flaky on Windows. See:
// https://github.com/rust-lang/rust-clippy/issues/11489
// Disable the test for now.
#[cfg(windows)]
std::fs::remove_dir_all(
tempdir
.path()
.join("tests/ui-cargo/multiple_crate_versions/5041_allow_dev_build"),
)
.unwrap();

// smoelius: `DYLINT_LIBRARY_PATH` must be set before `dylint_libs` is called.
// smoelius: This is no longer true. See comment in `dylint_testing::initialize`.
let metadata = dylint_internal::cargo::current_metadata().unwrap();
Expand Down

0 comments on commit e9cf2b3

Please sign in to comment.