File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -275,7 +275,7 @@ impl RunnerFifo {
275275 }
276276}
277277
278- #[ cfg( test) ]
278+ #[ cfg( all ( test, target_os = "linux" ) ) ]
279279mod tests {
280280 use super :: * ;
281281 use std:: time:: Duration ;
Original file line number Diff line number Diff line change @@ -146,6 +146,7 @@ async fn acquire_bpf_instrumentation_lock() -> SemaphorePermit<'static> {
146146 semaphore. acquire ( ) . await . unwrap ( )
147147}
148148
149+ #[ cfg( target_os = "linux" ) ]
149150mod valgrind {
150151 use super :: * ;
151152 use crate :: executor:: valgrind:: executor:: ValgrindExecutor ;
377378 }
378379}
379380
381+ #[ cfg( target_os = "linux" ) ]
380382#[ test_with:: env( GITHUB_ACTIONS ) ]
381383mod memory {
382384 use super :: * ;
Original file line number Diff line number Diff line change @@ -127,7 +127,9 @@ pub fn debug_info_by_path(
127127 . collect ( )
128128}
129129
130- #[ cfg( test) ]
130+ // These tests parse Linux ELF binaries from `testdata/`; gate them on Linux so they're not
131+ // attempted (and don't abort the test process) when running on macOS.
132+ #[ cfg( all( test, target_os = "linux" ) ) ]
131133mod tests {
132134 use super :: * ;
133135
Original file line number Diff line number Diff line change @@ -177,7 +177,7 @@ impl ModuleSymbols {
177177 }
178178}
179179
180- #[ cfg( test) ]
180+ #[ cfg( all ( test, target_os = "linux" ) ) ]
181181mod tests {
182182 use super :: * ;
183183
Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ pub fn unwind_data_from_elf(
8787 Ok ( ( v3, mapping) )
8888}
8989
90- #[ cfg( test) ]
90+ #[ cfg( all ( test, target_os = "linux" ) ) ]
9191mod tests {
9292 use super :: * ;
9393
You can’t perform that action at this time.
0 commit comments