Skip to content

Commit

Permalink
test: disable lldb test as it requires privileges to run on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
weihanglo committed Feb 7, 2024
1 parent bb9b25f commit cd1f088
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/testsuite/profile_trim_paths.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
//! Tests for `-Ztrim-paths`.
use cargo_test_support::basic_manifest;
use cargo_test_support::compare::match_contains;
use cargo_test_support::git;
use cargo_test_support::paths;
use cargo_test_support::project;
use cargo_test_support::registry::Package;
use cargo_util::is_ci;

#[cargo_test]
fn gated_manifest() {
Expand Down Expand Up @@ -694,7 +696,11 @@ fn custom_build_env_var_trim_paths() {
#[cfg(unix)]
#[cargo_test(requires_lldb, nightly, reason = "-Zremap-path-scope is unstable")]
fn lldb_works_after_trimmed() {
use cargo_test_support::compare::match_contains;
if !is_ci() {
// On macOS lldb requires elevated privileges to run developer tools.
// See rust-lang/cargo#13413
return;
}

let run_lldb = |path| {
std::process::Command::new("lldb")
Expand Down

0 comments on commit cd1f088

Please sign in to comment.