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};
1515use super :: { Init , Node , Uninit } ;
1616
1717/// Instantiates a pool as a global singleton
18+ // NOTE(any(test)) makes testing easier (no need to enable Cargo features for testing)
1819#[ cfg( any(
1920 armv7a,
2021 armv7r,
2122 armv7m,
2223 armv8m_main,
2324 all( target_arch = "x86_64" , feature = "x86-sync-pool" ) ,
25+ test
2426) ) ]
2527#[ macro_export]
2628macro_rules! pool {
Original file line number Diff line number Diff line change @@ -235,6 +235,7 @@ fn iterator_properly_wraps() {
235235 assert_eq ! ( expected, actual)
236236}
237237
238+ #[ cfg( all( target_arch = "x86_64" , feature = "x86-sync-pool" ) ) ]
238239#[ test]
239240fn pool ( ) {
240241 use heapless:: pool:: singleton:: Pool as _;
You can’t perform that action at this time.
0 commit comments