File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -469,7 +469,7 @@ unsafe fn emit_frame_as_json(
469
469
Ok ( ( ) )
470
470
}
471
471
472
- #[ cfg( test) ]
472
+ #[ cfg( all ( test, unix ) ) ]
473
473
mod tests {
474
474
use super :: * ;
475
475
use std:: ffi:: CString ;
@@ -546,7 +546,6 @@ mod tests {
546
546
}
547
547
548
548
#[ test]
549
- #[ cfg( unix) ]
550
549
fn test_frame_collection ( ) {
551
550
let _guard = TEST_MUTEX . lock ( ) . unwrap ( ) ;
552
551
ensure_callback_cleared ( ) ;
@@ -597,7 +596,6 @@ mod tests {
597
596
}
598
597
599
598
#[ test]
600
- #[ cfg( unix) ]
601
599
fn test_stacktrace_string_collection ( ) {
602
600
let _guard = TEST_MUTEX . lock ( ) . unwrap ( ) ;
603
601
ensure_callback_cleared ( ) ;
@@ -629,7 +627,6 @@ mod tests {
629
627
}
630
628
631
629
#[ test]
632
- #[ cfg( unix) ]
633
630
fn test_no_callback_registered ( ) {
634
631
let _guard = TEST_MUTEX . lock ( ) . unwrap ( ) ;
635
632
ensure_callback_cleared ( ) ;
@@ -651,7 +648,6 @@ mod tests {
651
648
}
652
649
653
650
#[ test]
654
- #[ cfg( unix) ]
655
651
fn test_direct_pipe_writing ( ) {
656
652
let _guard = TEST_MUTEX . lock ( ) . unwrap ( ) ;
657
653
ensure_callback_cleared ( ) ;
You can’t perform that action at this time.
0 commit comments