Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit b994fea

Browse files
committed
Auto merge of rust-lang#2355 - RalfJung:rustup, r=RalfJung
make a test deterministic
2 parents aada09f + 444ba75 commit b994fea

18 files changed

+35
-3
lines changed

rust-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1517f5de01c445b5124b30f02257b02b4c5ef3b2
1+
c396bb3b8a16b1f2762b7c6078dc3e023f6a2493

tests/fail/data_race/atomic_read_na_write_race1.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// We want to control preemption here.
2+
//@compile-flags: -Zmiri-preemption-rate=0
13
//@ignore-windows: Concurrency on Windows is not supported yet.
24
#![feature(core_intrinsics)]
35

tests/fail/data_race/atomic_read_na_write_race2.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// We want to control preemption here.
2+
//@compile-flags: -Zmiri-preemption-rate=0
13
//@ignore-windows: Concurrency on Windows is not supported yet.
24

35
use std::sync::atomic::AtomicUsize;

tests/fail/data_race/atomic_write_na_read_race1.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// We want to control preemption here.
2+
//@compile-flags: -Zmiri-preemption-rate=0
13
//@ignore-windows: Concurrency on Windows is not supported yet.
24

35
use std::sync::atomic::AtomicUsize;

tests/fail/data_race/atomic_write_na_read_race2.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// We want to control preemption here.
2+
//@compile-flags: -Zmiri-preemption-rate=0
13
//@ignore-windows: Concurrency on Windows is not supported yet.
24
#![feature(core_intrinsics)]
35

tests/fail/data_race/atomic_write_na_write_race1.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// We want to control preemption here.
2+
//@compile-flags: -Zmiri-preemption-rate=0
13
//@ignore-windows: Concurrency on Windows is not supported yet.
24
#![feature(core_intrinsics)]
35

tests/fail/data_race/atomic_write_na_write_race2.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// We want to control preemption here.
2+
//@compile-flags: -Zmiri-preemption-rate=0
13
//@ignore-windows: Concurrency on Windows is not supported yet.
24

35
use std::sync::atomic::AtomicUsize;

tests/fail/data_race/dangling_thread_async_race.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1+
// We want to control preemption here.
2+
//@compile-flags: -Zmiri-disable-isolation -Zmiri-preemption-rate=0
13
//@ignore-windows: Concurrency on Windows is not supported yet.
2-
//@compile-flags: -Zmiri-disable-isolation
34

45
use std::mem;
56
use std::thread::{sleep, spawn};

tests/fail/data_race/dangling_thread_race.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1+
// We want to control preemption here.
2+
//@compile-flags: -Zmiri-disable-isolation -Zmiri-preemption-rate=0
13
//@ignore-windows: Concurrency on Windows is not supported yet.
2-
//@compile-flags: -Zmiri-disable-isolation
34

45
use std::mem;
56
use std::thread::{sleep, spawn};

tests/fail/data_race/dealloc_read_race1.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// We want to control preemption here.
2+
//@compile-flags: -Zmiri-preemption-rate=0
13
//@ignore-windows: Concurrency on Windows is not supported yet.
24

35
use std::thread::spawn;

tests/fail/data_race/dealloc_read_race2.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// We want to control preemption here.
2+
//@compile-flags: -Zmiri-preemption-rate=0
13
//@ignore-windows: Concurrency on Windows is not supported yet.
24

35
use std::thread::spawn;

tests/fail/data_race/dealloc_write_race1.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// We want to control preemption here.
2+
//@compile-flags: -Zmiri-preemption-rate=0
13
//@ignore-windows: Concurrency on Windows is not supported yet.
24

35
use std::thread::spawn;

tests/fail/data_race/dealloc_write_race2.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// We want to control preemption here.
2+
//@compile-flags: -Zmiri-preemption-rate=0
13
//@ignore-windows: Concurrency on Windows is not supported yet.
24

35
use std::thread::spawn;

tests/fail/data_race/enable_after_join_to_main.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// We want to control preemption here.
2+
//@compile-flags: -Zmiri-preemption-rate=0
13
//@ignore-windows: Concurrency on Windows is not supported yet.
24

35
use std::thread::spawn;

tests/fail/data_race/read_write_race.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// We want to control preemption here.
2+
//@compile-flags: -Zmiri-preemption-rate=0
13
//@ignore-windows: Concurrency on Windows is not supported yet.
24

35
use std::thread::spawn;

tests/fail/data_race/write_write_race.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// We want to control preemption here.
2+
//@compile-flags: -Zmiri-preemption-rate=0
13
//@ignore-windows: Concurrency on Windows is not supported yet.
24

35
use std::thread::spawn;

tests/fail/weak_memory/racing_mixed_size.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// We want to control preemption here.
2+
//@compile-flags: -Zmiri-preemption-rate=0
13
//@ignore-windows: Concurrency on Windows is not supported yet.
24

35
#![feature(core_intrinsics)]

tests/fail/weak_memory/racing_mixed_size_read.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// We want to control preemption here.
2+
//@compile-flags: -Zmiri-preemption-rate=0
13
//@ignore-windows: Concurrency on Windows is not supported yet.
24

35
#![feature(core_intrinsics)]

0 commit comments

Comments
 (0)