File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -15,12 +15,14 @@ use as_slice::{AsMutSlice, AsSlice};
15
15
use super :: { Init , Node , Uninit } ;
16
16
17
17
/// Instantiates a pool as a global singleton
18
+ // NOTE(any(test)) makes testing easier (no need to enable Cargo features for testing)
18
19
#[ cfg( any(
19
20
armv7a,
20
21
armv7r,
21
22
armv7m,
22
23
armv8m_main,
23
24
all( target_arch = "x86_64" , feature = "x86-sync-pool" ) ,
25
+ test
24
26
) ) ]
25
27
#[ macro_export]
26
28
macro_rules! pool {
Original file line number Diff line number Diff line change @@ -235,6 +235,7 @@ fn iterator_properly_wraps() {
235
235
assert_eq ! ( expected, actual)
236
236
}
237
237
238
+ #[ cfg( all( target_arch = "x86_64" , feature = "x86-sync-pool" ) ) ]
238
239
#[ test]
239
240
fn pool ( ) {
240
241
use heapless:: pool:: singleton:: Pool as _;
You can’t perform that action at this time.
0 commit comments