File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ fn spawn_and_wait<R: Send + 'static>(f: impl FnOnce() -> R + Send + 'static) ->
48
48
}
49
49
50
50
#[ test]
51
+ #[ cfg_attr( target_os = "emscripten" , ignore) ]
51
52
fn sync_once_cell ( ) {
52
53
static ONCE_CELL : SyncOnceCell < i32 > = SyncOnceCell :: new ( ) ;
53
54
@@ -81,6 +82,7 @@ fn sync_once_cell_get_unchecked() {
81
82
}
82
83
83
84
#[ test]
85
+ #[ cfg_attr( target_os = "emscripten" , ignore) ]
84
86
fn sync_once_cell_drop ( ) {
85
87
static DROP_CNT : AtomicUsize = AtomicUsize :: new ( 0 ) ;
86
88
struct Dropper ;
@@ -158,6 +160,7 @@ fn into_inner() {
158
160
}
159
161
160
162
#[ test]
163
+ #[ cfg_attr( target_os = "emscripten" , ignore) ]
161
164
fn sync_lazy_new ( ) {
162
165
static CALLED : AtomicUsize = AtomicUsize :: new ( 0 ) ;
163
166
static SYNC_LAZY : SyncLazy < i32 > = SyncLazy :: new ( || {
@@ -204,6 +207,7 @@ fn sync_lazy_default() {
204
207
}
205
208
206
209
#[ test]
210
+ #[ cfg_attr( target_os = "emscripten" , ignore) ]
207
211
fn static_sync_lazy ( ) {
208
212
static XS : SyncLazy < Vec < i32 > > = SyncLazy :: new ( || {
209
213
let mut xs = Vec :: new ( ) ;
@@ -279,6 +283,7 @@ fn eval_once_macro() {
279
283
}
280
284
281
285
#[ test]
286
+ #[ cfg_attr( target_os = "emscripten" , ignore) ]
282
287
fn sync_once_cell_does_not_leak_partially_constructed_boxes ( ) {
283
288
static ONCE_CELL : SyncOnceCell < String > = SyncOnceCell :: new ( ) ;
284
289
Original file line number Diff line number Diff line change @@ -27,7 +27,6 @@ use crate::{
27
27
} ,
28
28
time:: { TestTimeOptions , TimeThreshold } ,
29
29
} ;
30
- use std:: any:: TypeId ;
31
30
use std:: sync:: mpsc:: channel;
32
31
use std:: time:: Duration ;
33
32
@@ -198,6 +197,7 @@ fn test_should_panic_bad_message() {
198
197
#[ cfg( not( target_os = "emscripten" ) ) ]
199
198
fn test_should_panic_non_string_message_type ( ) {
200
199
use crate :: tests:: TrFailedMsg ;
200
+ use std:: any:: TypeId ;
201
201
fn f ( ) {
202
202
panic ! ( 1i32 ) ;
203
203
}
You can’t perform that action at this time.
0 commit comments