Skip to content

Commit 371c45d

Browse files
committed
WIP
1 parent 8290c0b commit 371c45d

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

tests/testsuite/profile_trim_paths.rs

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ fn diagnostics_works() {
455455
#[cfg(target_os = "macos")]
456456
#[cargo_test(requires_nm, nightly, reason = "-Zremap-path-scope is unstable")]
457457
fn object_works() {
458-
object_works_helper(|path| {
458+
object_works_helper("off", |path| {
459459
std::process::Command::new("nm")
460460
.arg("-pa")
461461
.arg(path)
@@ -468,7 +468,7 @@ fn object_works() {
468468
#[cfg(target_os = "linux")]
469469
#[cargo_test(requires_readelf, nightly, reason = "-Zremap-path-scope is unstable")]
470470
fn object_works() {
471-
object_works_helper(|path| {
471+
object_works_helper("off", |path| {
472472
std::process::Command::new("readelf")
473473
.arg("-wi")
474474
.arg(path)
@@ -479,7 +479,7 @@ fn object_works() {
479479
}
480480

481481
#[cfg(unix)]
482-
fn object_works_helper(run: impl Fn(&std::path::Path) -> Vec<u8>) {
482+
fn object_works_helper(split_debuginfo: &str, run: impl Fn(&std::path::Path) -> Vec<u8>) {
483483
use std::os::unix::ffi::OsStrExt;
484484

485485
let registry_src = paths::home().join(".cargo/registry/src");
@@ -495,14 +495,17 @@ fn object_works_helper(run: impl Fn(&std::path::Path) -> Vec<u8>) {
495495
let p = project()
496496
.file(
497497
"Cargo.toml",
498-
r#"
498+
&format!(r#"
499499
[package]
500500
name = "foo"
501501
version = "0.0.1"
502502
503503
[dependencies]
504504
bar = "0.0.1"
505-
"#,
505+
506+
[profile.dev]
507+
split-debuginfo = "{split_debuginfo}"
508+
"#),
506509
)
507510
.file("src/main.rs", "fn main() { bar::f(); }")
508511
.build();

0 commit comments

Comments
 (0)