Skip to content

Commit 05885ec

Browse files
authored
Add checkpoint feature flag in the docs example (#355)
1 parent a7033ee commit 05885ec

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/lib.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -208,14 +208,14 @@
208208
//!
209209
//! ```console
210210
//! LOOM_CHECKPOINT_FILE=my_test.json [other env vars] \
211-
//! cargo test --test loom_my_struct --release [failing test]
211+
//! cargo test --test loom_my_struct --features checkpoint --release [failing test]
212212
//! ```
213213
//!
214214
//! Then this to check that the next permutation indeed triggers the fault:
215215
//!
216216
//! ```console
217217
//! LOOM_CHECKPOINT_INTERVAL=1 LOOM_CHECKPOINT_FILE=my_test.json [other env vars] \
218-
//! cargo test --test loom_my_struct --release [failing test]
218+
//! cargo test --test loom_my_struct --features checkpoint --release [failing test]
219219
//! ```
220220
//!
221221
//! The test should fail on the first permutation, effectively isolating the failure
@@ -242,7 +242,7 @@
242242
//! LOOM_CHECKPOINT_FILE=my_test.json \
243243
//! RUSTFLAGS="--cfg loom" \
244244
//! [other env vars] \
245-
//! cargo test --test loom_my_struct --release [failing test]
245+
//! cargo test --test loom_my_struct --features checkpoint --release [failing test]
246246
//! ```
247247
//!
248248
//! This should provide you with a trace of all the concurrency events leading up to the failure,

0 commit comments

Comments
 (0)