Skip to content

Commit 6534c63

Browse files
committed
try make preemptive tests more stable
1 parent de73c5a commit 6534c63

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

core/tests/coroutine.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ fn coroutine_stack_growth() -> std::io::Result<()> {
114114
Ok(())
115115
}
116116

117-
#[cfg(not(all(debug_assertions, target_os = "linux", target_arch = "x86", feature = "preemptive")))]
117+
#[cfg(not(all(target_os = "linux", target_arch = "x86", feature = "preemptive")))]
118118
#[test]
119119
fn coroutine_trap() -> std::io::Result<()> {
120120
let mut coroutine = co!(|_: &Suspender<'_, (), ()>, ()| {
@@ -131,7 +131,10 @@ fn coroutine_trap() -> std::io::Result<()> {
131131
Ok(())
132132
}
133133

134-
#[cfg(not(any(debug_assertions, all(target_os = "linux", target_arch = "x86", feature = "preemptive"))))]
134+
#[cfg(not(any(
135+
debug_assertions,
136+
all(target_os = "linux", target_arch = "x86", feature = "preemptive")
137+
)))]
135138
#[test]
136139
fn coroutine_invalid_memory_reference() -> std::io::Result<()> {
137140
let mut coroutine = co!(|_: &Suspender<'_, (), ()>, ()| {

0 commit comments

Comments
 (0)