Skip to content

Commit 3281f02

Browse files
committed
bless non-Linux tests
1 parent 9439f33 commit 3281f02

12 files changed

+19
-21
lines changed

src/tools/miri/tests/fail-dep/concurrency/apple_os_unfair_lock_assert_not_owner.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ error: abnormal termination: called os_unfair_lock_assert_not_owner on an os_unf
22
--> tests/fail-dep/concurrency/apple_os_unfair_lock_assert_not_owner.rs:LL:CC
33
|
44
LL | libc::os_unfair_lock_assert_not_owner(lock.get());
5-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ called os_unfair_lock_assert_not_owner on an os_unfair_lock owned by the current thread
5+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ abnormal termination occurred here
66
|
77
= note: BACKTRACE:
88
= note: inside `main` at tests/fail-dep/concurrency/apple_os_unfair_lock_assert_not_owner.rs:LL:CC

src/tools/miri/tests/fail-dep/concurrency/apple_os_unfair_lock_assert_owner.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ error: abnormal termination: called os_unfair_lock_assert_owner on an os_unfair_
22
--> tests/fail-dep/concurrency/apple_os_unfair_lock_assert_owner.rs:LL:CC
33
|
44
LL | libc::os_unfair_lock_assert_owner(lock.get());
5-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ called os_unfair_lock_assert_owner on an os_unfair_lock not owned by the current thread
5+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ abnormal termination occurred here
66
|
77
= note: BACKTRACE:
88
= note: inside `main` at tests/fail-dep/concurrency/apple_os_unfair_lock_assert_owner.rs:LL:CC

src/tools/miri/tests/fail-dep/concurrency/apple_os_unfair_lock_move_deadlock.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
error: deadlock: the evaluated program deadlocked
1+
error: the evaluated program deadlocked
22
--> tests/fail-dep/concurrency/apple_os_unfair_lock_move_deadlock.rs:LL:CC
33
|
44
LL | unsafe { libc::os_unfair_lock_lock(lock.get()) };
5-
| ^ the evaluated program deadlocked
5+
| ^ this thread got stuck here
66
|
77
= note: BACKTRACE:
88
= note: inside `main` at tests/fail-dep/concurrency/apple_os_unfair_lock_move_deadlock.rs:LL:CC

src/tools/miri/tests/fail-dep/concurrency/apple_os_unfair_lock_reentrant.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ error: abnormal termination: attempted to lock an os_unfair_lock that is already
22
--> tests/fail-dep/concurrency/apple_os_unfair_lock_reentrant.rs:LL:CC
33
|
44
LL | libc::os_unfair_lock_lock(lock.get());
5-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ attempted to lock an os_unfair_lock that is already locked by the current thread
5+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ abnormal termination occurred here
66
|
77
= note: BACKTRACE:
88
= note: inside `main` at tests/fail-dep/concurrency/apple_os_unfair_lock_reentrant.rs:LL:CC

src/tools/miri/tests/fail-dep/concurrency/apple_os_unfair_lock_unowned.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ error: abnormal termination: attempted to unlock an os_unfair_lock not owned by
22
--> tests/fail-dep/concurrency/apple_os_unfair_lock_unowned.rs:LL:CC
33
|
44
LL | libc::os_unfair_lock_unlock(lock.get());
5-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ attempted to unlock an os_unfair_lock not owned by the current thread
5+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ abnormal termination occurred here
66
|
77
= note: BACKTRACE:
88
= note: inside `main` at tests/fail-dep/concurrency/apple_os_unfair_lock_unowned.rs:LL:CC

src/tools/miri/tests/fail-dep/concurrency/windows_join_detached.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ error: Undefined Behavior: trying to join a detached thread
22
--> RUSTLIB/std/src/sys/pal/PLATFORM/thread.rs:LL:CC
33
|
44
LL | let rc = unsafe { c::WaitForSingleObject(self.handle.as_raw_handle(), c::INFINITE) };
5-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ trying to join a detached thread
5+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Undefined Behavior occurred here
66
|
77
= help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
88
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information

src/tools/miri/tests/fail-dep/concurrency/windows_join_main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const MAIN_THREAD: HANDLE = (2i32 << 29) as HANDLE;
1818
fn main() {
1919
thread::spawn(|| {
2020
unsafe {
21-
assert_eq!(WaitForSingleObject(MAIN_THREAD, INFINITE), WAIT_OBJECT_0); //~ ERROR: deadlock: the evaluated program deadlocked
21+
assert_eq!(WaitForSingleObject(MAIN_THREAD, INFINITE), WAIT_OBJECT_0); //~ ERROR: deadlock
2222
}
2323
})
2424
.join()

src/tools/miri/tests/fail-dep/concurrency/windows_join_main.stderr

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
error: deadlock: the evaluated program deadlocked
1+
error: the evaluated program deadlocked
22
--> tests/fail-dep/concurrency/windows_join_main.rs:LL:CC
33
|
44
LL | assert_eq!(WaitForSingleObject(MAIN_THREAD, INFINITE), WAIT_OBJECT_0);
5-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the evaluated program deadlocked
5+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this thread got stuck here
66
|
77
= note: BACKTRACE on thread `unnamed-ID`:
88
= note: inside closure at RUSTLIB/core/src/macros/mod.rs:LL:CC
99
= note: this error originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
1010

11-
error: deadlock: the evaluated program deadlocked
11+
error: the evaluated program deadlocked
1212
--> RUSTLIB/std/src/sys/pal/PLATFORM/thread.rs:LL:CC
1313
|
1414
LL | let rc = unsafe { c::WaitForSingleObject(self.handle.as_raw_handle(), c::INFINITE) };
15-
| ^ the evaluated program deadlocked
15+
| ^ this thread got stuck here
1616
|
1717
= note: BACKTRACE:
1818
= note: inside `std::sys::pal::PLATFORM::thread::Thread::join` at RUSTLIB/std/src/sys/pal/PLATFORM/thread.rs:LL:CC

src/tools/miri/tests/fail-dep/concurrency/windows_join_self.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ fn main() {
1414
thread::spawn(|| {
1515
unsafe {
1616
let native = GetCurrentThread();
17-
assert_eq!(WaitForSingleObject(native, INFINITE), WAIT_OBJECT_0); //~ ERROR: deadlock: the evaluated program deadlocked
17+
assert_eq!(WaitForSingleObject(native, INFINITE), WAIT_OBJECT_0); //~ ERROR: deadlock
1818
}
1919
})
2020
.join()

src/tools/miri/tests/fail-dep/concurrency/windows_join_self.stderr

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
error: deadlock: the evaluated program deadlocked
1+
error: the evaluated program deadlocked
22
--> tests/fail-dep/concurrency/windows_join_self.rs:LL:CC
33
|
44
LL | assert_eq!(WaitForSingleObject(native, INFINITE), WAIT_OBJECT_0);
5-
| ^ the evaluated program deadlocked
5+
| ^ this thread got stuck here
66
|
77
= note: BACKTRACE on thread `unnamed-ID`:
88
= note: inside closure at tests/fail-dep/concurrency/windows_join_self.rs:LL:CC
99

10-
error: deadlock: the evaluated program deadlocked
10+
error: the evaluated program deadlocked
1111
--> RUSTLIB/std/src/sys/pal/PLATFORM/thread.rs:LL:CC
1212
|
1313
LL | let rc = unsafe { c::WaitForSingleObject(self.handle.as_raw_handle(), c::INFINITE) };
14-
| ^ the evaluated program deadlocked
14+
| ^ this thread got stuck here
1515
|
1616
= note: BACKTRACE:
1717
= note: inside `std::sys::pal::PLATFORM::thread::Thread::join` at RUSTLIB/std/src/sys/pal/PLATFORM/thread.rs:LL:CC

src/tools/miri/tests/fail/concurrency/read_only_atomic_load_large.stderr

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@ error: Undefined Behavior: large atomic load operations cannot be performed on r
44
--> tests/fail/concurrency/read_only_atomic_load_large.rs:LL:CC
55
|
66
LL | x.load(Ordering::Relaxed);
7-
| ^^^^^^^^^^^^^^^^^^^^^^^^^ large atomic load operations cannot be performed on read-only memory
8-
these operations often have to be implemented using read-modify-write operations, which require writeable memory
9-
see <https://doc.rust-lang.org/nightly/std/sync/atomic/index.html#atomic-accesses-to-read-only-memory> for more information
7+
| ^^^^^^^^^^^^^^^^^^^^^^^^^ Undefined Behavior occurred here
108
|
119
= help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
1210
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information

src/tools/miri/tests/fail/function_calls/target_feature_wasm.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ error: abnormal termination: calling a function that requires unavailable target
22
--> tests/fail/function_calls/target_feature_wasm.rs:LL:CC
33
|
44
LL | simd128_fn();
5-
| ^^^^^^^^^^^^ calling a function that requires unavailable target features: simd128
5+
| ^^^^^^^^^^^^ abnormal termination occurred here
66
|
77
= note: BACKTRACE:
88
= note: inside `main` at tests/fail/function_calls/target_feature_wasm.rs:LL:CC

0 commit comments

Comments
 (0)