Skip to content

Commit 6e10661

Browse files
committed
Port all tests
1 parent e4f7c68 commit 6e10661

File tree

221 files changed

+269
-345
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

221 files changed

+269
-345
lines changed

tests/fail/box-cell-alias.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// compile-flags: -Zmiri-strict-provenance
1+
//@compile-flags: -Zmiri-strict-provenance
22

33
// Taken from <https://github.com/rust-lang/unsafe-code-guidelines/issues/194#issuecomment-520934222>.
44

tests/fail/concurrency/libc_pthread_join_detached.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// ignore-windows: No libc on Windows
1+
//@ignore-windows: No libc on Windows
22

33
// Joining a detached thread is undefined behavior.
44

tests/fail/concurrency/libc_pthread_join_joined.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// ignore-windows: No libc on Windows
1+
//@ignore-windows: No libc on Windows
22

33
// Joining an already joined thread is undefined behavior.
44

tests/fail/concurrency/libc_pthread_join_main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// ignore-windows: No libc on Windows
1+
//@ignore-windows: No libc on Windows
22

33
// Joining the main thread is undefined behavior.
44

tests/fail/concurrency/libc_pthread_join_multiple.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// ignore-windows: No libc on Windows
1+
//@ignore-windows: No libc on Windows
22

33
// Joining the same thread from multiple threads is undefined behavior.
44

tests/fail/concurrency/libc_pthread_join_self.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
// ignore-windows: No libc on Windows
1+
//@ignore-windows: No libc on Windows
22
// We are making scheduler assumptions here.
3-
// compile-flags: -Zmiri-preemption-rate=0
3+
//@compile-flags: -Zmiri-preemption-rate=0
44

55
// Joining itself is undefined behavior.
66

tests/fail/concurrency/thread_local_static_dealloc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// ignore-windows: Concurrency on Windows is not supported yet.
1+
//@ignore-windows: Concurrency on Windows is not supported yet.
22

33
//! Ensure that thread-local statics get deallocated when the thread dies.
44

tests/fail/concurrency/too_few_args.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// ignore-windows: Concurrency on Windows is not supported yet.
1+
//@ignore-windows: Concurrency on Windows is not supported yet.
22

33
//! The thread function must have exactly one argument.
44

tests/fail/concurrency/too_many_args.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// ignore-windows: Concurrency on Windows is not supported yet.
1+
//@ignore-windows: Concurrency on Windows is not supported yet.
22

33
//! The thread function must have exactly one argument.
44

tests/fail/concurrency/unwind_top_of_stack.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// ignore-windows: Concurrency on Windows is not supported yet.
2-
// compile-flags: -Zmiri-disable-abi-check
1+
//@ignore-windows: Concurrency on Windows is not supported yet.
2+
//@compile-flags: -Zmiri-disable-abi-check
33

44
//! Unwinding past the top frame of a stack is Undefined Behavior.
55

0 commit comments

Comments
 (0)