Skip to content

Commit

Permalink
test: no-std rwlock primitive, with documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
bitwalker committed Aug 4, 2024
1 parent 8fba88e commit 303ce97
Show file tree
Hide file tree
Showing 4 changed files with 298 additions and 8 deletions.
97 changes: 97 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ test-fast: ## Runs all tests with the debug profile
test-skip-proptests: ## Runs all tests, except property-based tests
$(DEBUG_ASSERTIONS) cargo nextest run --features testing -E 'not test(#*proptest)'

.PHONY: test-loom
test-loom: ## Runs all loom-based tests
RUSTFLAGS="--cfg loom" cargo nextest run --cargo-profile test-release --features testing -E 'test(#*loom)'

# --- checking ------------------------------------------------------------------------------------

.PHONY: check
Expand Down
8 changes: 8 additions & 0 deletions core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,11 @@ winter-utils = { package = "winter-utils", version = "0.9", default-features = f
[dev-dependencies]
proptest = "1.3"
rand_utils = { version = "0.9", package = "winter-rand-utils" }
loom = "0.7"

[target.'cfg(loom)'.dependencies]
loom = "0.7"

# Enable once the VM reaches Rust 1.80+
#[lints.rust]
#unexpected_cfgs = { level = "warn", check-cfg = ['cfg(loom)'] }
Loading

0 comments on commit 303ce97

Please sign in to comment.