File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 208
208
//!
209
209
//! ```console
210
210
//! 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]
212
212
//! ```
213
213
//!
214
214
//! Then this to check that the next permutation indeed triggers the fault:
215
215
//!
216
216
//! ```console
217
217
//! 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]
219
219
//! ```
220
220
//!
221
221
//! The test should fail on the first permutation, effectively isolating the failure
242
242
//! LOOM_CHECKPOINT_FILE=my_test.json \
243
243
//! RUSTFLAGS="--cfg loom" \
244
244
//! [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]
246
246
//! ```
247
247
//!
248
248
//! This should provide you with a trace of all the concurrency events leading up to the failure,
You can’t perform that action at this time.
0 commit comments