Skip to content

Commit

Permalink
tests: disable/comment the dyldinfo tests until someone figures out c…
Browse files Browse the repository at this point in the history
…orrect translation for the new cli for dyld_info
  • Loading branch information
m4b committed Feb 26, 2023
1 parent 8e074e3 commit 3f0cacb
Showing 1 changed file with 29 additions and 24 deletions.
53 changes: 29 additions & 24 deletions tests/compare_dyldinfos.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,32 +51,37 @@ pub fn compare(args: Vec<&str>) {
}
}

#[cfg(target_os = "macos")]
#[test]
fn compare_binds() {
let dyldinfo = get_realpath("dyldinfo");
let clang = get_realpath("clang");
compare(vec!["-bind", &dyldinfo]);
compare(vec!["-bind", &clang]);
compare(vec!["-bind", "/usr/bin/tmutil"]);
}
// DISABLED: dyldinfo is now dyld_info and cli has changed
// significantly, so these tests all fail until someone
// figures out the correct translation to new dyld_info api
// (which will likely cause the dyldinfo example to be fixed up too)

#[cfg(target_os = "macos")]
#[test]
fn compare_lazy_binds() {
let dyldinfo = get_realpath("dyldinfo");
let clang = get_realpath("clang");
compare(vec!["-lazy_bind", &dyldinfo]);
compare(vec!["-lazy_bind", &clang]);
compare(vec!["-lazy_bind", "/usr/bin/tmutil"]);
}
// #[cfg(target_os = "macos")]
// #[test]
// fn compare_binds() {
// let dyldinfo = get_realpath("dyldinfo");
// let clang = get_realpath("clang");
// compare(vec!["-bind", &dyldinfo]);
// compare(vec!["-bind", &clang]);
// compare(vec!["-bind", "/usr/bin/tmutil"]);
// }

#[cfg(target_os = "macos")]
#[test]
fn compare_combined_options() {
let dyldinfo = get_realpath("dyldinfo");
compare(vec!["-lazy_bind", "-bind", &dyldinfo]);
}
// #[cfg(target_os = "macos")]
// #[test]
// fn compare_lazy_binds() {
// let dyldinfo = get_realpath("dyldinfo");
// let clang = get_realpath("clang");
// compare(vec!["-lazy_bind", &dyldinfo]);
// compare(vec!["-lazy_bind", &clang]);
// compare(vec!["-lazy_bind", "/usr/bin/tmutil"]);
// }

// #[cfg(target_os = "macos")]
// #[test]
// fn compare_combined_options() {
// let dyldinfo = get_realpath("dyldinfo");
// compare(vec!["-lazy_bind", "-bind", &dyldinfo]);
// }

#[cfg(not(target_os = "macos"))]
#[test]
Expand Down

0 comments on commit 3f0cacb

Please sign in to comment.