Skip to content

Commit f60d084

Browse files
committed
Fix test output after rebase.
1 parent 46dcb56 commit f60d084

File tree

2 files changed

+2
-83
lines changed

2 files changed

+2
-83
lines changed

tests/genmc/fail/intercept/mutex_deadlock_std.stderr

Lines changed: 2 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ LL | intrinsics::atomic_cxchgweak::<T, { AO::Relaxed }, { AO::Re
1212
= note: inside closure at RUSTLIB/std/src/thread/current.rs:LL:CC
1313
= note: inside `std::option::Option::<std::thread::ThreadId>::unwrap_or_else::<{closure@std::thread::current::id::get_or_init::{closure#0}}>` at RUSTLIB/core/src/option.rs:LL:CC
1414
= note: inside `std::thread::current::id::get_or_init` at RUSTLIB/std/src/thread/current.rs:LL:CC
15-
= note: inside `std::thread::current::current_id` at RUSTLIB/std/src/thread/current.rs:LL:CC
15+
= note: inside `std::thread::current_id` at RUSTLIB/std/src/thread/current.rs:LL:CC
1616
= note: inside `std::rt::init` at RUSTLIB/std/src/rt.rs:LL:CC
1717
= note: inside closure at RUSTLIB/std/src/rt.rs:LL:CC
1818
= note: inside `std::panicking::catch_unwind::do_call::<{closure@std::rt::lang_start_internal::{closure#0}}, isize>` at RUSTLIB/std/src/panicking.rs:LL:CC
@@ -85,26 +85,6 @@ LL | | *y += 1;
8585
LL | | });
8686
| |______^
8787

88-
warning: GenMC currently does not model spurious failures of `compare_exchange_weak`. Miri with GenMC might miss bugs related to spurious failures.
89-
--> RUSTLIB/std/src/thread/mod.rs:LL:CC
90-
|
91-
LL | match COUNTER.compare_exchange_weak(last, id, Ordering::Relaxed, Ordering::Relaxed) {
92-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ GenMC might miss possible behaviors of this code
93-
|
94-
= note: BACKTRACE:
95-
= note: inside `std::thread::ThreadId::new` at RUSTLIB/std/src/thread/mod.rs:LL:CC
96-
note: inside `main`
97-
--> tests/genmc/fail/intercept/mutex_deadlock_std.rs:LL:CC
98-
|
99-
LL | let t1 = std::thread::spawn(|| {
100-
| ______________^
101-
LL | | let mut y = Y.lock().unwrap();
102-
LL | | let mut x = X.lock().unwrap();
103-
LL | | *x += 1;
104-
LL | | *y += 1;
105-
LL | | });
106-
| |______^
107-
10888
warning: GenMC currently does not model the failure ordering for `compare_exchange`. Due to success ordering 'Acquire', the failure ordering 'Relaxed' is treated like 'Acquire'. Miri with GenMC might miss bugs related to this memory access.
10989
--> RUSTLIB/alloc/src/sync.rs:LL:CC
11090
|
@@ -122,23 +102,6 @@ note: inside `main`
122102
LL | t0.join().unwrap();
123103
| ^^^^^^^^^
124104

125-
warning: GenMC currently does not model the failure ordering for `compare_exchange`. Due to success ordering 'Acquire', the failure ordering 'Relaxed' is treated like 'Acquire'. Miri with GenMC might miss bugs related to this memory access.
126-
--> RUSTLIB/alloc/src/sync.rs:LL:CC
127-
|
128-
LL | if this.inner().weak.compare_exchange(1, usize::MAX, Acquire, Relaxed).is_ok() {
129-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ GenMC might miss possible behaviors of this code
130-
|
131-
= note: BACKTRACE:
132-
= note: inside `std::sync::Arc::<std::thread::Packet<'_, ()>>::is_unique` at RUSTLIB/alloc/src/sync.rs:LL:CC
133-
= note: inside `std::sync::Arc::<std::thread::Packet<'_, ()>>::get_mut` at RUSTLIB/alloc/src/sync.rs:LL:CC
134-
= note: inside `std::thread::JoinInner::<'_, ()>::join` at RUSTLIB/std/src/thread/mod.rs:LL:CC
135-
= note: inside `std::thread::JoinHandle::<()>::join` at RUSTLIB/std/src/thread/mod.rs:LL:CC
136-
note: inside `main`
137-
--> tests/genmc/fail/intercept/mutex_deadlock_std.rs:LL:CC
138-
|
139-
LL | t1.join().unwrap();
140-
| ^^^^^^^^^
141-
142105
warning: GenMC currently does not model spurious failures of `compare_exchange_weak`. Miri with GenMC might miss bugs related to spurious failures.
143106
--> RUSTLIB/core/src/sync/atomic.rs:LL:CC
144107
|
@@ -223,5 +186,5 @@ note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a
223186

224187
note: add `-Zmiri-genmc-print-genmc-output` to MIRIFLAGS to see the detailed GenMC error report
225188

226-
error: aborting due to 3 previous errors; 8 warnings emitted
189+
error: aborting due to 3 previous errors; 6 warnings emitted
227190

tests/genmc/pass/intercept/mutex_poison.stderr

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -61,50 +61,6 @@ LL | | panic!(); // This will poison the mutex.
6161
LL | | });
6262
| |______^
6363

64-
warning: GenMC currently does not model the failure ordering for `compare_exchange`. Due to success ordering 'Acquire', the failure ordering 'Relaxed' is treated like 'Acquire'. Miri with GenMC might miss bugs related to this memory access.
65-
--> RUSTLIB/std/src/sys/sync/PLATFORM/futex.rs:LL:CC
66-
|
67-
LL | || self
68-
| ________________^
69-
LL | | .state
70-
LL | | .compare_exchange_weak(state, state + READ_LOCKED, Acquire, Relaxed)
71-
| |____________________________________________________________________________________^ GenMC might miss possible behaviors of this code
72-
|
73-
= note: BACKTRACE on thread `unnamed-ID`:
74-
= note: inside `std::sys::sync::PLATFORM::futex::RwLock::read` at RUSTLIB/std/src/sys/sync/PLATFORM/futex.rs:LL:CC
75-
= note: inside `std::sync::RwLock::<std::panicking::Hook>::read` at RUSTLIB/std/src/sync/poison/rwlock.rs:LL:CC
76-
= note: inside `std::panicking::panic_with_hook` at RUSTLIB/std/src/panicking.rs:LL:CC
77-
= note: inside closure at RUSTLIB/std/src/panicking.rs:LL:CC
78-
= note: inside `std::sys::backtrace::__rust_end_short_backtrace::<{closure@std::panicking::panic_handler::{closure#0}}, !>` at RUSTLIB/std/src/sys/backtrace.rs:LL:CC
79-
= note: inside `std::panicking::panic_handler` at RUSTLIB/std/src/panicking.rs:LL:CC
80-
note: inside closure
81-
--> tests/genmc/pass/intercept/mutex_poison.rs:LL:CC
82-
|
83-
LL | panic!(); // This will poison the mutex.
84-
| ^^^^^^^^
85-
86-
warning: GenMC currently does not model spurious failures of `compare_exchange_weak`. Miri with GenMC might miss bugs related to spurious failures.
87-
--> RUSTLIB/std/src/sys/sync/PLATFORM/futex.rs:LL:CC
88-
|
89-
LL | || self
90-
| ________________^
91-
LL | | .state
92-
LL | | .compare_exchange_weak(state, state + READ_LOCKED, Acquire, Relaxed)
93-
| |____________________________________________________________________________________^ GenMC might miss possible behaviors of this code
94-
|
95-
= note: BACKTRACE on thread `unnamed-ID`:
96-
= note: inside `std::sys::sync::PLATFORM::futex::RwLock::read` at RUSTLIB/std/src/sys/sync/PLATFORM/futex.rs:LL:CC
97-
= note: inside `std::sync::RwLock::<std::panicking::Hook>::read` at RUSTLIB/std/src/sync/poison/rwlock.rs:LL:CC
98-
= note: inside `std::panicking::panic_with_hook` at RUSTLIB/std/src/panicking.rs:LL:CC
99-
= note: inside closure at RUSTLIB/std/src/panicking.rs:LL:CC
100-
= note: inside `std::sys::backtrace::__rust_end_short_backtrace::<{closure@std::panicking::panic_handler::{closure#0}}, !>` at RUSTLIB/std/src/sys/backtrace.rs:LL:CC
101-
= note: inside `std::panicking::panic_handler` at RUSTLIB/std/src/panicking.rs:LL:CC
102-
note: inside closure
103-
--> tests/genmc/pass/intercept/mutex_poison.rs:LL:CC
104-
|
105-
LL | panic!(); // This will poison the mutex.
106-
| ^^^^^^^^
107-
10864

10965
thread '<unnamed>' ($TID) panicked at tests/genmc/pass/intercept/mutex_poison.rs:LL:CC:
11066
explicit panic

0 commit comments

Comments
 (0)