From 4c99ae8f3910d66a20b640857646d10827042460 Mon Sep 17 00:00:00 2001 From: m4b Date: Sun, 5 Feb 2023 21:13:08 -0800 Subject: [PATCH] tests: disable/comment the dyldinfo tests until someone figures out correct translation for the new cli for dyld_info --- tests/compare_dyldinfos.rs | 53 +++++++++++++++++++++----------------- 1 file changed, 29 insertions(+), 24 deletions(-) diff --git a/tests/compare_dyldinfos.rs b/tests/compare_dyldinfos.rs index bd023230b..82373176e 100644 --- a/tests/compare_dyldinfos.rs +++ b/tests/compare_dyldinfos.rs @@ -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]