Skip to content

Commit 9a6bafd

Browse files
committed
Auto merge of #13416 - weihanglo:disable-lldb, r=epage
test: disable lldb test as it requires privileges to run on macOS Resolves #13413
2 parents fbebea2 + cd1f088 commit 9a6bafd

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tests/testsuite/profile_trim_paths.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
//! Tests for `-Ztrim-paths`.
22
33
use cargo_test_support::basic_manifest;
4+
use cargo_test_support::compare::match_contains;
45
use cargo_test_support::git;
56
use cargo_test_support::paths;
67
use cargo_test_support::project;
78
use cargo_test_support::registry::Package;
9+
use cargo_util::is_ci;
810

911
#[cargo_test]
1012
fn gated_manifest() {
@@ -694,7 +696,11 @@ fn custom_build_env_var_trim_paths() {
694696
#[cfg(unix)]
695697
#[cargo_test(requires_lldb, nightly, reason = "-Zremap-path-scope is unstable")]
696698
fn lldb_works_after_trimmed() {
697-
use cargo_test_support::compare::match_contains;
699+
if !is_ci() {
700+
// On macOS lldb requires elevated privileges to run developer tools.
701+
// See rust-lang/cargo#13413
702+
return;
703+
}
698704

699705
let run_lldb = |path| {
700706
std::process::Command::new("lldb")

0 commit comments

Comments
 (0)