Skip to content

Commit

Permalink
Auto merge of #10011 - hkratz:disable-failing-test, r=joshtriplett
Browse files Browse the repository at this point in the history
Fix test: hash value depends on endianness and bitness.

The test fails on 32-bit systems and on big-endian systems since Rust 1.44.

Fixes #10004.
  • Loading branch information
bors committed Nov 10, 2021
2 parents 2e2a16e + aa00def commit e11cd81
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/cargo/core/source/source_id.rs
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,12 @@ impl Ord for SourceKind {
// you're able to restore the hash to its original value, please do so!
// Otherwise please just leave a comment in your PR as to why the hash value is
// changing and why the old value can't be easily preserved.
//
// The hash value depends on endianness and bit-width, so we only run this test on
// little-endian 64-bit CPUs (such as x86-64 and ARM64) where it matches the
// well-known value.
#[test]
#[cfg(all(target_endian = "little", target_pointer_width = "64"))]
fn test_cratesio_hash() {
let config = Config::default().unwrap();
let crates_io = SourceId::crates_io(&config).unwrap();
Expand Down

0 comments on commit e11cd81

Please sign in to comment.