Skip to content

Commit 143e2dc

Browse files
committed
Disable the new Hasher tests on Emscripten.
1 parent 0bbe468 commit 143e2dc

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

src/liballoc/tests/lib.rs

+3
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ fn hash<T: Hash>(t: &T) -> u64 {
5151
s.finish()
5252
}
5353

54+
// FIXME: Instantiated functions with i128 in the signature is not supported in Emscripten.
55+
// See https://github.com/kripken/emscripten-fastcomp/issues/169
56+
#[cfg(not(target_os = "emscripten"))]
5457
#[test]
5558
fn test_boxed_hasher() {
5659
let ordinary_hash = hash(&5u32);

src/libcore/tests/hash/mod.rs

+3
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,9 @@ fn test_custom_state() {
110110
assert_eq!(hash(&Custom { hash: 5 }), 5);
111111
}
112112

113+
// FIXME: Instantiated functions with i128 in the signature is not supported in Emscripten.
114+
// See https://github.com/kripken/emscripten-fastcomp/issues/169
115+
#[cfg(not(target_os = "emscripten"))]
113116
#[test]
114117
fn test_indirect_hasher() {
115118
let mut hasher = MyHasher { hash: 0 };

src/tools/tidy/src/pal.rs

+1
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ const EXCEPTION_PATHS: &'static [&'static str] = &[
7676

7777
// std testing crates, ok for now at least
7878
"src/libcore/tests",
79+
"src/liballoc/tests/lib.rs",
7980

8081
// non-std crates
8182
"src/test",

0 commit comments

Comments
 (0)