From d4f5e8eafcb5c6fa810e588171d28d2557856e04 Mon Sep 17 00:00:00 2001 From: Jake Shadle Date: Mon, 9 Oct 2023 12:20:48 +0200 Subject: [PATCH] Ignore tests that depend on endianess --- src/utils.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/utils.rs b/src/utils.rs index c8f0fa2..d2a7410 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -272,6 +272,7 @@ mod test { use crate::PathBuf; #[test] + #[cfg(target_endian = "little")] fn canonicalizes_git_urls() { let super::UrlDir { dir_name, canonical } = url_to_local_dir("git+https://github.com/EmbarkStudios/cpal.git?rev=d59b4de#d59b4decf72a96932a1482cc27fe4c0b50c40d32").unwrap(); @@ -321,6 +322,7 @@ mod test { } #[test] + #[cfg(target_endian = "little")] fn matches_cargo() { assert_eq!( get_index_details(crate::CRATES_IO_INDEX, Some(PathBuf::new())).unwrap(),