Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
polazarus committed Nov 10, 2024
1 parent d0ac6f2 commit 158b223
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions src/smart/tests.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
#[cfg(not(loom))]
mod sync {
pub use alloc::sync::*;
pub use core::sync::*;
#[cfg(feature = "std")]
pub use std::sync::mpsc;
}

#[cfg(feature = "std")]
#[cfg(all(not(loom), feature = "std"))]
use std::sync;
#[cfg(all(not(loom), feature = "std"))]
use std::thread;

#[cfg(loom)]
Expand Down Expand Up @@ -272,6 +266,7 @@ fn test_atomic_st_clone_overflow() {
}

#[test]
#[cfg(any(loom, feature = "std"))]
fn test_atomic_mt_clone_move_and_drop() {
let witness = atomic_witness::Witness::default();
let num = T::new(witness.clone());
Expand Down Expand Up @@ -383,6 +378,6 @@ fn test_atomic_mt_clone_overflow() {

#[test]
#[cfg(loom)]
fn loom_ts_clone_overflow() {
fn loom_atomic_mt_clone_overflow() {
loom::model(test_atomic_mt_clone_overflow);
}

0 comments on commit 158b223

Please sign in to comment.