Skip to content

Commit db8436f

Browse files
bless windows tests
1 parent 6ea9883 commit db8436f

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

tests/fail-dep/concurrency/windows_join_main.stderr

+15
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,21 @@ LL | assert_eq!(WaitForSingleObject(MAIN_THREAD, INFINITE), WAIT_OBJ
66
|
77
= note: BACKTRACE on thread `unnamed-ID`:
88
= note: inside closure at RUSTLIB/core/src/macros/mod.rs:LL:CC
9+
= note: thread `unnamed-ID` was spawned by thread `main`
10+
= note: inside `std::sys::pal::PLATFORM::thread::Thread::new` at RUSTLIB/std/src/sys/pal/PLATFORM/thread.rs:LL:CC
11+
= note: inside `std::thread::Builder::spawn_unchecked_::<'_, {closure@tests/fail-dep/concurrency/windows_join_main.rs:LL:CC}, ()>` at RUSTLIB/std/src/thread/mod.rs:LL:CC
12+
= note: inside `std::thread::Builder::spawn_unchecked::<{closure@tests/fail-dep/concurrency/windows_join_main.rs:LL:CC}, ()>` at RUSTLIB/std/src/thread/mod.rs:LL:CC
13+
= note: inside `std::thread::Builder::spawn::<{closure@tests/fail-dep/concurrency/windows_join_main.rs:LL:CC}, ()>` at RUSTLIB/std/src/thread/mod.rs:LL:CC
14+
= note: inside `std::thread::spawn::<{closure@tests/fail-dep/concurrency/windows_join_main.rs:LL:CC}, ()>` at RUSTLIB/std/src/thread/mod.rs:LL:CC
15+
note: inside `main`
16+
--> tests/fail-dep/concurrency/windows_join_main.rs:LL:CC
17+
|
18+
LL | / thread::spawn(|| {
19+
LL | | unsafe {
20+
LL | | assert_eq!(WaitForSingleObject(MAIN_THREAD, INFINITE), WAIT_OBJECT_0);
21+
LL | | }
22+
LL | | })
23+
| |______^
924
= note: this error originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
1025

1126
error: deadlock: the evaluated program deadlocked

tests/fail-dep/concurrency/windows_join_self.stderr

+16
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,22 @@ LL | assert_eq!(WaitForSingleObject(native, INFINITE), WAIT_OBJECT_0
66
|
77
= note: BACKTRACE on thread `unnamed-ID`:
88
= note: inside closure at tests/fail-dep/concurrency/windows_join_self.rs:LL:CC
9+
= note: thread `unnamed-ID` was spawned by thread `main`
10+
= note: inside `std::sys::pal::PLATFORM::thread::Thread::new` at RUSTLIB/std/src/sys/pal/PLATFORM/thread.rs:LL:CC
11+
= note: inside `std::thread::Builder::spawn_unchecked_::<'_, {closure@tests/fail-dep/concurrency/windows_join_self.rs:LL:CC}, ()>` at RUSTLIB/std/src/thread/mod.rs:LL:CC
12+
= note: inside `std::thread::Builder::spawn_unchecked::<{closure@tests/fail-dep/concurrency/windows_join_self.rs:LL:CC}, ()>` at RUSTLIB/std/src/thread/mod.rs:LL:CC
13+
= note: inside `std::thread::Builder::spawn::<{closure@tests/fail-dep/concurrency/windows_join_self.rs:LL:CC}, ()>` at RUSTLIB/std/src/thread/mod.rs:LL:CC
14+
= note: inside `std::thread::spawn::<{closure@tests/fail-dep/concurrency/windows_join_self.rs:LL:CC}, ()>` at RUSTLIB/std/src/thread/mod.rs:LL:CC
15+
note: inside `main`
16+
--> tests/fail-dep/concurrency/windows_join_self.rs:LL:CC
17+
|
18+
LL | / thread::spawn(|| {
19+
LL | | unsafe {
20+
LL | | let native = GetCurrentThread();
21+
LL | | assert_eq!(WaitForSingleObject(native, INFINITE), WAIT_OBJECT_0);
22+
LL | | }
23+
LL | | })
24+
| |______^
925

1026
error: deadlock: the evaluated program deadlocked
1127
--> RUSTLIB/std/src/sys/pal/PLATFORM/thread.rs:LL:CC

0 commit comments

Comments
 (0)