Skip to content

Commit

Permalink
Disable the new Hasher tests on Emscripten.
Browse files Browse the repository at this point in the history
  • Loading branch information
kennytm committed Sep 12, 2017
1 parent 0bbe468 commit 143e2dc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/liballoc/tests/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ fn hash<T: Hash>(t: &T) -> u64 {
s.finish()
}

// FIXME: Instantiated functions with i128 in the signature is not supported in Emscripten.
// See https://github.com/kripken/emscripten-fastcomp/issues/169
#[cfg(not(target_os = "emscripten"))]
#[test]
fn test_boxed_hasher() {
let ordinary_hash = hash(&5u32);
Expand Down
3 changes: 3 additions & 0 deletions src/libcore/tests/hash/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,9 @@ fn test_custom_state() {
assert_eq!(hash(&Custom { hash: 5 }), 5);
}

// FIXME: Instantiated functions with i128 in the signature is not supported in Emscripten.
// See https://github.com/kripken/emscripten-fastcomp/issues/169
#[cfg(not(target_os = "emscripten"))]
#[test]
fn test_indirect_hasher() {
let mut hasher = MyHasher { hash: 0 };
Expand Down
1 change: 1 addition & 0 deletions src/tools/tidy/src/pal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ const EXCEPTION_PATHS: &'static [&'static str] = &[

// std testing crates, ok for now at least
"src/libcore/tests",
"src/liballoc/tests/lib.rs",

// non-std crates
"src/test",
Expand Down

0 comments on commit 143e2dc

Please sign in to comment.