]> git.lizzy.rs Git - rust.git/commitdiff
Reduce the number of runs in consistency tests
authorAndy Wang <cbeuw.andy@gmail.com>
Thu, 12 May 2022 23:15:57 +0000 (00:15 +0100)
committerAndy Wang <cbeuw.andy@gmail.com>
Mon, 6 Jun 2022 18:15:25 +0000 (19:15 +0100)
tests/run-pass/weak_memory/consistency.rs

index d7c44f6ac281484d6feb7c433f945b36a0e77219..8705d0bc6781a5dffbc53c8389454f97affb290a 100644 (file)
@@ -206,11 +206,7 @@ fn test_sc_store_buffering() {
 }
 
 pub fn main() {
-    // TODO: does this make chances of spurious success
-    // "sufficiently low"? This also takes a long time to run,
-    // prehaps each function should be its own test case so they
-    // can be run in parallel
-    for _ in 0..500 {
+    for _ in 0..100 {
         test_mixed_access();
         test_load_buffering_acq_rel();
         test_message_passing();