Skip to content

Commit 9c4a01e

Browse files
committed
Ignore lots and lots of std tests on emscripten
1 parent fcd3279 commit 9c4a01e

File tree

28 files changed

+255
-0
lines changed

28 files changed

+255
-0
lines changed

src/liballoc/arc.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1000,6 +1000,7 @@ mod tests {
10001000
}
10011001

10021002
#[test]
1003+
#[cfg_attr(target_os = "emscripten", ignore)]
10031004
fn manually_share_arc() {
10041005
let v = vec![1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
10051006
let arc_v = Arc::new(v);

src/libcollections/linked_list.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1294,6 +1294,7 @@ mod tests {
12941294
}
12951295

12961296
#[test]
1297+
#[cfg_attr(target_os = "emscripten", ignore)]
12971298
fn test_send() {
12981299
let n = list_from(&[1, 2, 3]);
12991300
thread::spawn(move || {

src/libcollectionstest/slice.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1116,6 +1116,7 @@ fn test_box_slice_clone() {
11161116
}
11171117

11181118
#[test]
1119+
#[cfg_attr(target_os = "emscripten", ignore)]
11191120
fn test_box_slice_clone_panics() {
11201121
use std::sync::Arc;
11211122
use std::sync::atomic::{AtomicUsize, Ordering};

src/libstd/env.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1033,6 +1033,7 @@ mod tests {
10331033
}
10341034

10351035
#[test]
1036+
#[cfg_attr(target_os = "emscripten", ignore)]
10361037
fn test_var_big() {
10371038
let mut s = "".to_string();
10381039
let mut i = 0;
@@ -1046,6 +1047,7 @@ mod tests {
10461047
}
10471048

10481049
#[test]
1050+
#[cfg_attr(target_os = "emscripten", ignore)]
10491051
fn test_self_exe_path() {
10501052
let path = current_exe();
10511053
assert!(path.is_ok());
@@ -1056,6 +1058,7 @@ mod tests {
10561058
}
10571059

10581060
#[test]
1061+
#[cfg_attr(target_os = "emscripten", ignore)]
10591062
fn test_env_set_get_huge() {
10601063
let n = make_rand_name();
10611064
let s = repeat("x").take(10000).collect::<String>();

0 commit comments

Comments
 (0)