Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change loom tests to use cfg(loom) internally (#314)
- Loading branch information
1 parent
b32f629
commit 9a10add
Showing
6 changed files
with
94 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
jobs: | ||
- job: ${{parameters.name}} | ||
displayName: Loom tests | ||
pool: | ||
vmImage: ubuntu-16.04 | ||
|
||
steps: | ||
- template: azure-install-rust.yml | ||
parameters: | ||
rust_version: ${{parameters.rust_version}} | ||
|
||
- script: RUSTFLAGS="--cfg loom" cargo test --lib | ||
displayName: RUSTFLAGS="--cfg loom" cargo test --lib | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
#[cfg(not(all(test, loom)))] | ||
pub(crate) mod sync { | ||
pub(crate) mod atomic { | ||
pub(crate) use core::sync::atomic::{fence, AtomicPtr, AtomicUsize, Ordering}; | ||
} | ||
} | ||
|
||
#[cfg(all(test, loom))] | ||
pub(crate) use ::loom::sync; |
This file was deleted.
Oops, something went wrong.