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) ->
4848}
4949
5050#[ test]
51+ #[ cfg_attr( target_os = "emscripten" , ignore) ]
5152fn sync_once_cell ( ) {
5253 static ONCE_CELL : SyncOnceCell < i32 > = SyncOnceCell :: new ( ) ;
5354
@@ -81,6 +82,7 @@ fn sync_once_cell_get_unchecked() {
8182}
8283
8384#[ test]
85+ #[ cfg_attr( target_os = "emscripten" , ignore) ]
8486fn sync_once_cell_drop ( ) {
8587 static DROP_CNT : AtomicUsize = AtomicUsize :: new ( 0 ) ;
8688 struct Dropper ;
@@ -158,6 +160,7 @@ fn into_inner() {
158160}
159161
160162#[ test]
163+ #[ cfg_attr( target_os = "emscripten" , ignore) ]
161164fn sync_lazy_new ( ) {
162165 static CALLED : AtomicUsize = AtomicUsize :: new ( 0 ) ;
163166 static SYNC_LAZY : SyncLazy < i32 > = SyncLazy :: new ( || {
@@ -204,6 +207,7 @@ fn sync_lazy_default() {
204207}
205208
206209#[ test]
210+ #[ cfg_attr( target_os = "emscripten" , ignore) ]
207211fn static_sync_lazy ( ) {
208212 static XS : SyncLazy < Vec < i32 > > = SyncLazy :: new ( || {
209213 let mut xs = Vec :: new ( ) ;
@@ -279,6 +283,7 @@ fn eval_once_macro() {
279283}
280284
281285#[ test]
286+ #[ cfg_attr( target_os = "emscripten" , ignore) ]
282287fn sync_once_cell_does_not_leak_partially_constructed_boxes ( ) {
283288 static ONCE_CELL : SyncOnceCell < String > = SyncOnceCell :: new ( ) ;
284289
Original file line number Diff line number Diff line change @@ -27,7 +27,6 @@ use crate::{
2727 } ,
2828 time:: { TestTimeOptions , TimeThreshold } ,
2929} ;
30- use std:: any:: TypeId ;
3130use std:: sync:: mpsc:: channel;
3231use std:: time:: Duration ;
3332
@@ -198,6 +197,7 @@ fn test_should_panic_bad_message() {
198197#[ cfg( not( target_os = "emscripten" ) ) ]
199198fn test_should_panic_non_string_message_type ( ) {
200199 use crate :: tests:: TrFailedMsg ;
200+ use std:: any:: TypeId ;
201201 fn f ( ) {
202202 panic ! ( 1i32 ) ;
203203 }
You can’t perform that action at this time.
0 commit comments