ui_test: more robust syntax for target filtering
This commit is contained in:
parent
36a7a654b0
commit
1c85975768
@ -1,4 +1,4 @@
|
||||
//@ignore-windows: No libc on Windows
|
||||
//@ignore-target-windows: No libc on Windows
|
||||
//@error-pattern: the main thread terminated without waiting for all remaining threads
|
||||
|
||||
// Check that we terminate the program when the main thread terminates.
|
||||
|
@ -1,4 +1,4 @@
|
||||
//@ignore-windows: No libc on Windows
|
||||
//@ignore-target-windows: No libc on Windows
|
||||
|
||||
// Joining a detached thread is undefined behavior.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
//@ignore-windows: No libc on Windows
|
||||
//@ignore-target-windows: No libc on Windows
|
||||
|
||||
// Joining an already joined thread is undefined behavior.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
//@ignore-windows: No libc on Windows
|
||||
//@ignore-target-windows: No libc on Windows
|
||||
|
||||
// Joining the main thread is undefined behavior.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
//@ignore-windows: No libc on Windows
|
||||
//@ignore-target-windows: No libc on Windows
|
||||
|
||||
// Joining the same thread from multiple threads is undefined behavior.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
//@ignore-windows: No libc on Windows
|
||||
//@ignore-target-windows: No libc on Windows
|
||||
// We are making scheduler assumptions here.
|
||||
//@compile-flags: -Zmiri-preemption-rate=0
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
//@only-windows: Only Windows is not supported.
|
||||
//@only-target-windows: Only Windows is not supported.
|
||||
|
||||
use std::thread;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
//@ignore-windows: Concurrency on Windows is not supported yet.
|
||||
//@ignore-target-windows: Concurrency on Windows is not supported yet.
|
||||
|
||||
//! Ensure that thread-local statics get deallocated when the thread dies.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
//@ignore-windows: Concurrency on Windows is not supported yet.
|
||||
//@ignore-target-windows: Concurrency on Windows is not supported yet.
|
||||
|
||||
//! The thread function must have exactly one argument.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
//@ignore-windows: Concurrency on Windows is not supported yet.
|
||||
//@ignore-target-windows: Concurrency on Windows is not supported yet.
|
||||
|
||||
//! The thread function must have exactly one argument.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
//@ignore-windows: Concurrency on Windows is not supported yet.
|
||||
//@ignore-target-windows: Concurrency on Windows is not supported yet.
|
||||
//@compile-flags: -Zmiri-disable-abi-check
|
||||
|
||||
//! Unwinding past the top frame of a stack is Undefined Behavior.
|
||||
|
@ -1,4 +1,4 @@
|
||||
//@ignore-windows: Concurrency on Windows is not supported yet.
|
||||
//@ignore-target-windows: Concurrency on Windows is not supported yet.
|
||||
//@compile-flags: -Zmiri-disable-weak-memory-emulation -Zmiri-preemption-rate=0
|
||||
#![feature(new_uninit)]
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
//@ignore-windows: Concurrency on Windows is not supported yet.
|
||||
//@ignore-target-windows: Concurrency on Windows is not supported yet.
|
||||
//@compile-flags: -Zmiri-disable-weak-memory-emulation -Zmiri-preemption-rate=0
|
||||
#![feature(new_uninit)]
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
// We want to control preemption here.
|
||||
//@compile-flags: -Zmiri-preemption-rate=0
|
||||
//@ignore-windows: Concurrency on Windows is not supported yet.
|
||||
//@ignore-target-windows: Concurrency on Windows is not supported yet.
|
||||
#![feature(core_intrinsics)]
|
||||
|
||||
use std::intrinsics;
|
||||
|
@ -1,6 +1,6 @@
|
||||
// We want to control preemption here.
|
||||
//@compile-flags: -Zmiri-preemption-rate=0
|
||||
//@ignore-windows: Concurrency on Windows is not supported yet.
|
||||
//@ignore-target-windows: Concurrency on Windows is not supported yet.
|
||||
|
||||
use std::sync::atomic::AtomicUsize;
|
||||
use std::sync::atomic::Ordering;
|
||||
|
@ -1,6 +1,6 @@
|
||||
// We want to control preemption here.
|
||||
//@compile-flags: -Zmiri-preemption-rate=0
|
||||
//@ignore-windows: Concurrency on Windows is not supported yet.
|
||||
//@ignore-target-windows: Concurrency on Windows is not supported yet.
|
||||
|
||||
use std::sync::atomic::AtomicUsize;
|
||||
use std::sync::atomic::Ordering;
|
||||
|
@ -1,6 +1,6 @@
|
||||
// We want to control preemption here.
|
||||
//@compile-flags: -Zmiri-preemption-rate=0
|
||||
//@ignore-windows: Concurrency on Windows is not supported yet.
|
||||
//@ignore-target-windows: Concurrency on Windows is not supported yet.
|
||||
#![feature(core_intrinsics)]
|
||||
|
||||
use std::intrinsics::atomic_store;
|
||||
|
@ -1,6 +1,6 @@
|
||||
// We want to control preemption here.
|
||||
//@compile-flags: -Zmiri-preemption-rate=0
|
||||
//@ignore-windows: Concurrency on Windows is not supported yet.
|
||||
//@ignore-target-windows: Concurrency on Windows is not supported yet.
|
||||
#![feature(core_intrinsics)]
|
||||
|
||||
use std::intrinsics::atomic_store;
|
||||
|
@ -1,6 +1,6 @@
|
||||
// We want to control preemption here.
|
||||
//@compile-flags: -Zmiri-preemption-rate=0
|
||||
//@ignore-windows: Concurrency on Windows is not supported yet.
|
||||
//@ignore-target-windows: Concurrency on Windows is not supported yet.
|
||||
|
||||
use std::sync::atomic::AtomicUsize;
|
||||
use std::sync::atomic::Ordering;
|
||||
|
@ -1,6 +1,6 @@
|
||||
// We want to control preemption here.
|
||||
//@compile-flags: -Zmiri-disable-isolation -Zmiri-preemption-rate=0
|
||||
//@ignore-windows: Concurrency on Windows is not supported yet.
|
||||
//@ignore-target-windows: Concurrency on Windows is not supported yet.
|
||||
|
||||
use std::mem;
|
||||
use std::thread::{sleep, spawn};
|
||||
|
@ -1,6 +1,6 @@
|
||||
// We want to control preemption here.
|
||||
//@compile-flags: -Zmiri-disable-isolation -Zmiri-preemption-rate=0
|
||||
//@ignore-windows: Concurrency on Windows is not supported yet.
|
||||
//@ignore-target-windows: Concurrency on Windows is not supported yet.
|
||||
|
||||
use std::mem;
|
||||
use std::thread::{sleep, spawn};
|
||||
|
@ -1,6 +1,6 @@
|
||||
// We want to control preemption here.
|
||||
//@compile-flags: -Zmiri-preemption-rate=0
|
||||
//@ignore-windows: Concurrency on Windows is not supported yet.
|
||||
//@ignore-target-windows: Concurrency on Windows is not supported yet.
|
||||
|
||||
use std::thread::spawn;
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
// We want to control preemption here.
|
||||
//@compile-flags: -Zmiri-preemption-rate=0
|
||||
//@ignore-windows: Concurrency on Windows is not supported yet.
|
||||
//@ignore-target-windows: Concurrency on Windows is not supported yet.
|
||||
|
||||
use std::thread::spawn;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
//@ignore-windows: Concurrency on Windows is not supported yet.
|
||||
//@ignore-target-windows: Concurrency on Windows is not supported yet.
|
||||
//@compile-flags: -Zmiri-disable-isolation -Zmiri-disable-weak-memory-emulation -Zmiri-preemption-rate=0
|
||||
|
||||
use std::ptr::null_mut;
|
||||
|
@ -1,6 +1,6 @@
|
||||
// We want to control preemption here.
|
||||
//@compile-flags: -Zmiri-preemption-rate=0
|
||||
//@ignore-windows: Concurrency on Windows is not supported yet.
|
||||
//@ignore-target-windows: Concurrency on Windows is not supported yet.
|
||||
|
||||
use std::thread::spawn;
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
// We want to control preemption here.
|
||||
//@compile-flags: -Zmiri-preemption-rate=0
|
||||
//@ignore-windows: Concurrency on Windows is not supported yet.
|
||||
//@ignore-target-windows: Concurrency on Windows is not supported yet.
|
||||
|
||||
use std::thread::spawn;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
//@ignore-windows: Concurrency on Windows is not supported yet.
|
||||
//@ignore-target-windows: Concurrency on Windows is not supported yet.
|
||||
//@compile-flags: -Zmiri-disable-isolation -Zmiri-disable-weak-memory-emulation -Zmiri-preemption-rate=0
|
||||
|
||||
use std::ptr::null_mut;
|
||||
|
@ -1,6 +1,6 @@
|
||||
// We want to control preemption here.
|
||||
//@compile-flags: -Zmiri-preemption-rate=0
|
||||
//@ignore-windows: Concurrency on Windows is not supported yet.
|
||||
//@ignore-target-windows: Concurrency on Windows is not supported yet.
|
||||
|
||||
use std::thread::spawn;
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
// We want to control preemption here.
|
||||
//@compile-flags: -Zmiri-disable-isolation -Zmiri-preemption-rate=0
|
||||
//@ignore-windows: Concurrency on Windows is not supported yet.
|
||||
//@ignore-target-windows: Concurrency on Windows is not supported yet.
|
||||
use std::sync::atomic::{fence, AtomicUsize, Ordering};
|
||||
use std::sync::Arc;
|
||||
use std::thread;
|
||||
|
@ -1,6 +1,6 @@
|
||||
// We want to control preemption here.
|
||||
//@compile-flags: -Zmiri-preemption-rate=0
|
||||
//@ignore-windows: Concurrency on Windows is not supported yet.
|
||||
//@ignore-target-windows: Concurrency on Windows is not supported yet.
|
||||
|
||||
use std::thread::spawn;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
//@ignore-windows: Concurrency on Windows is not supported yet.
|
||||
//@ignore-target-windows: Concurrency on Windows is not supported yet.
|
||||
//@compile-flags: -Zmiri-disable-isolation -Zmir-opt-level=0 -Zmiri-disable-weak-memory-emulation -Zmiri-preemption-rate=0
|
||||
|
||||
// Note: mir-opt-level set to 0 to prevent the read of stack_var in thread 1
|
||||
|
@ -1,4 +1,4 @@
|
||||
//@ignore-windows: Concurrency on Windows is not supported yet.
|
||||
//@ignore-target-windows: Concurrency on Windows is not supported yet.
|
||||
//@compile-flags: -Zmiri-disable-weak-memory-emulation -Zmiri-preemption-rate=0
|
||||
|
||||
use std::sync::atomic::{AtomicUsize, Ordering};
|
||||
|
@ -1,4 +1,4 @@
|
||||
//@ignore-windows: Concurrency on Windows is not supported yet.
|
||||
//@ignore-target-windows: Concurrency on Windows is not supported yet.
|
||||
//@compile-flags: -Zmiri-disable-isolation -Zmiri-disable-weak-memory-emulation -Zmiri-preemption-rate=0
|
||||
|
||||
use std::sync::atomic::{AtomicUsize, Ordering};
|
||||
|
@ -1,4 +1,4 @@
|
||||
//@ignore-windows: Concurrency on Windows is not supported yet.
|
||||
//@ignore-target-windows: Concurrency on Windows is not supported yet.
|
||||
//@compile-flags: -Zmiri-disable-isolation -Zmiri-disable-weak-memory-emulation -Zmiri-preemption-rate=0
|
||||
|
||||
use std::sync::atomic::{AtomicUsize, Ordering};
|
||||
|
@ -1,4 +1,4 @@
|
||||
//@ignore-windows: Concurrency on Windows is not supported yet.
|
||||
//@ignore-target-windows: Concurrency on Windows is not supported yet.
|
||||
//@compile-flags: -Zmiri-disable-weak-memory-emulation -Zmiri-preemption-rate=0
|
||||
|
||||
use std::sync::atomic::{AtomicUsize, Ordering};
|
||||
|
@ -1,4 +1,4 @@
|
||||
//@ignore-windows: Concurrency on Windows is not supported yet.
|
||||
//@ignore-target-windows: Concurrency on Windows is not supported yet.
|
||||
//@compile-flags: -Zmiri-preemption-rate=0
|
||||
use std::thread;
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
// We want to control preemption here.
|
||||
//@compile-flags: -Zmiri-preemption-rate=0
|
||||
//@ignore-windows: Concurrency on Windows is not supported yet.
|
||||
//@ignore-target-windows: Concurrency on Windows is not supported yet.
|
||||
|
||||
use std::thread::spawn;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
//@ignore-windows: Concurrency on Windows is not supported yet.
|
||||
//@ignore-target-windows: Concurrency on Windows is not supported yet.
|
||||
//@compile-flags: -Zmiri-disable-isolation -Zmiri-disable-weak-memory-emulation -Zmiri-preemption-rate=0
|
||||
|
||||
use std::ptr::null_mut;
|
||||
|
@ -1,4 +1,4 @@
|
||||
//@ignore-windows: Windows does not have a global environ list that the program can access directly
|
||||
//@ignore-target-windows: Windows does not have a global environ list that the program can access directly
|
||||
|
||||
#[cfg(any(target_os = "linux", target_os = "freebsd"))]
|
||||
fn get_environ() -> *const *const u8 {
|
||||
|
@ -1,4 +1,4 @@
|
||||
//@ignore-windows: No libc on Windows
|
||||
//@ignore-target-windows: No libc on Windows
|
||||
//@compile-flags: -Zmiri-disable-isolation
|
||||
|
||||
// FIXME: standard handles cannot be closed (https://github.com/rust-lang/rust/issues/40032)
|
||||
|
@ -1,4 +1,4 @@
|
||||
//@ignore-windows: File handling is not implemented yet
|
||||
//@ignore-target-windows: File handling is not implemented yet
|
||||
//@error-pattern: `open` not available when isolation is enabled
|
||||
|
||||
fn main() {
|
||||
|
@ -1,4 +1,4 @@
|
||||
//@ignore-windows: No libc on Windows
|
||||
//@ignore-target-windows: No libc on Windows
|
||||
|
||||
#![feature(rustc_private)]
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
//@compile-flags: -Zmiri-disable-isolation
|
||||
//@ignore-windows: No libc on Windows
|
||||
//@ignore-target-windows: No libc on Windows
|
||||
|
||||
#![feature(rustc_private)]
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
//@ignore-windows: No libc on Windows
|
||||
//@ignore-target-windows: No libc on Windows
|
||||
//@compile-flags: -Zmiri-disable-isolation
|
||||
|
||||
#![feature(rustc_private)]
|
||||
|
@ -1,4 +1,4 @@
|
||||
//@ignore-windows: No libc on Windows
|
||||
//@ignore-target-windows: No libc on Windows
|
||||
|
||||
#![feature(rustc_private)]
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
//@ignore-windows: Concurrency on Windows is not supported yet.
|
||||
//@ignore-target-windows: Concurrency on Windows is not supported yet.
|
||||
//@compile-flags: -Zmiri-ignore-leaks
|
||||
//@error-pattern: unreachable
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
//@ignore-windows: No libc on Windows
|
||||
//@ignore-target-windows: No libc on Windows
|
||||
#![feature(rustc_private)]
|
||||
|
||||
/// Test that destroying a pthread_cond twice fails, even without a check for number validity
|
||||
|
@ -1,4 +1,4 @@
|
||||
//@ignore-windows: No libc on Windows
|
||||
//@ignore-target-windows: No libc on Windows
|
||||
#![feature(rustc_private)]
|
||||
|
||||
/// Test that destroying a pthread_condattr twice fails, even without a check for number validity
|
||||
|
@ -1,4 +1,4 @@
|
||||
//@ignore-windows: No libc on Windows
|
||||
//@ignore-target-windows: No libc on Windows
|
||||
//
|
||||
// Check that if we pass NULL attribute, then we get the default mutex type.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
//@ignore-windows: No libc on Windows
|
||||
//@ignore-target-windows: No libc on Windows
|
||||
|
||||
#![feature(rustc_private)]
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
//@ignore-windows: No libc on Windows
|
||||
//@ignore-target-windows: No libc on Windows
|
||||
//
|
||||
// Check that if we do not set the mutex type, it is the default.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
//@ignore-windows: No libc on Windows
|
||||
//@ignore-target-windows: No libc on Windows
|
||||
|
||||
#![feature(rustc_private)]
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
//@ignore-windows: No libc on Windows
|
||||
//@ignore-target-windows: No libc on Windows
|
||||
#![feature(rustc_private)]
|
||||
|
||||
/// Test that destroying a pthread_mutex twice fails, even without a check for number validity
|
||||
|
@ -1,4 +1,4 @@
|
||||
//@ignore-windows: No libc on Windows
|
||||
//@ignore-target-windows: No libc on Windows
|
||||
|
||||
#![feature(rustc_private)]
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
//@ignore-windows: No libc on Windows
|
||||
//@ignore-target-windows: No libc on Windows
|
||||
|
||||
#![feature(rustc_private)]
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
//@ignore-windows: No libc on Windows
|
||||
//@ignore-target-windows: No libc on Windows
|
||||
|
||||
#![feature(rustc_private)]
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
//@ignore-windows: No libc on Windows
|
||||
//@ignore-target-windows: No libc on Windows
|
||||
#![feature(rustc_private)]
|
||||
|
||||
/// Test that destroying a pthread_mutexattr twice fails, even without a check for number validity
|
||||
|
@ -1,4 +1,4 @@
|
||||
//@ignore-windows: No libc on Windows
|
||||
//@ignore-target-windows: No libc on Windows
|
||||
|
||||
#![feature(rustc_private)]
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
//@ignore-windows: No libc on Windows
|
||||
//@ignore-target-windows: No libc on Windows
|
||||
|
||||
#![feature(rustc_private)]
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
//@ignore-windows: No libc on Windows
|
||||
//@ignore-target-windows: No libc on Windows
|
||||
#![feature(rustc_private)]
|
||||
|
||||
/// Test that destroying a pthread_rwlock twice fails, even without a check for number validity
|
||||
|
@ -1,4 +1,4 @@
|
||||
//@ignore-windows: No libc on Windows
|
||||
//@ignore-target-windows: No libc on Windows
|
||||
|
||||
#![feature(rustc_private)]
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
//@ignore-windows: No libc on Windows
|
||||
//@ignore-target-windows: No libc on Windows
|
||||
|
||||
#![feature(rustc_private)]
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
//@ignore-windows: No libc on Windows
|
||||
//@ignore-target-windows: No libc on Windows
|
||||
|
||||
#![feature(rustc_private)]
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
//@ignore-windows: No libc on Windows
|
||||
//@ignore-target-windows: No libc on Windows
|
||||
|
||||
#![feature(rustc_private)]
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
//@ignore-windows: No libc on Windows
|
||||
//@ignore-target-windows: No libc on Windows
|
||||
|
||||
#![feature(rustc_private)]
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
//@ignore-windows: No libc on Windows
|
||||
//@ignore-target-windows: No libc on Windows
|
||||
|
||||
#![feature(rustc_private)]
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
//@ignore-windows: No libc on Windows
|
||||
//@ignore-target-windows: No libc on Windows
|
||||
|
||||
#![feature(rustc_private)]
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
//@ignore-windows: No libc on Windows
|
||||
//@ignore-target-windows: No libc on Windows
|
||||
|
||||
#![feature(rustc_private)]
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
//! `signal()` is special on Linux and macOS that it's only supported within libstd.
|
||||
//! The implementation is not complete enough to permit user code to call it.
|
||||
//@ignore-windows: No libc on Windows
|
||||
//@ignore-target-windows: No libc on Windows
|
||||
#![feature(rustc_private)]
|
||||
|
||||
extern crate libc;
|
||||
|
@ -1,6 +1,6 @@
|
||||
// We want to control preemption here.
|
||||
//@compile-flags: -Zmiri-preemption-rate=0
|
||||
//@ignore-windows: Concurrency on Windows is not supported yet.
|
||||
//@ignore-target-windows: Concurrency on Windows is not supported yet.
|
||||
|
||||
#![feature(core_intrinsics)]
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
// We want to control preemption here.
|
||||
//@compile-flags: -Zmiri-preemption-rate=0
|
||||
//@ignore-windows: Concurrency on Windows is not supported yet.
|
||||
//@ignore-target-windows: Concurrency on Windows is not supported yet.
|
||||
|
||||
#![feature(core_intrinsics)]
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
//@ignore-windows: No libc on Windows
|
||||
//@ignore-apple: `syscall` is not supported on macOS
|
||||
//@ignore-target-windows: No libc on Windows
|
||||
//@ignore-target-apple: `syscall` is not supported on macOS
|
||||
//@compile-flags: -Zmiri-panic-on-unsupported
|
||||
#![feature(rustc_private)]
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
//@ignore-windows: Concurrency on Windows is not supported yet.
|
||||
//@ignore-target-windows: Concurrency on Windows is not supported yet.
|
||||
//@compile-flags: -Zmiri-ignore-leaks -Zmiri-disable-stacked-borrows
|
||||
|
||||
// The following tests check whether our weak memory emulation produces
|
||||
|
@ -1,4 +1,4 @@
|
||||
//@ignore-windows: No libc on Windows
|
||||
//@ignore-target-windows: No libc on Windows
|
||||
|
||||
#![feature(rustc_private)]
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
//@ignore-windows: Concurrency on Windows is not supported yet.
|
||||
//@ignore-target-windows: Concurrency on Windows is not supported yet.
|
||||
//@compile-flags: -Zmiri-strict-provenance
|
||||
|
||||
use std::sync::mpsc::{channel, sync_channel};
|
||||
|
@ -1,4 +1,4 @@
|
||||
//@ignore-windows: Concurrency on Windows is not supported yet.
|
||||
//@ignore-target-windows: Concurrency on Windows is not supported yet.
|
||||
|
||||
use std::panic::Location;
|
||||
use std::thread::spawn;
|
||||
|
@ -1,4 +1,4 @@
|
||||
//@ignore-windows: Concurrency on Windows is not supported yet.
|
||||
//@ignore-target-windows: Concurrency on Windows is not supported yet.
|
||||
//@compile-flags: -Zmiri-disable-weak-memory-emulation
|
||||
|
||||
use std::sync::atomic::{fence, AtomicUsize, Ordering};
|
||||
|
@ -1,4 +1,4 @@
|
||||
//@ignore-windows: Concurrency on Windows is not supported yet.
|
||||
//@ignore-target-windows: Concurrency on Windows is not supported yet.
|
||||
//@compile-flags: -Zmiri-disable-data-race-detector
|
||||
|
||||
use std::thread::spawn;
|
||||
|
@ -1,4 +1,4 @@
|
||||
//@ignore-windows: Concurrency on Windows is not supported yet.
|
||||
//@ignore-target-windows: Concurrency on Windows is not supported yet.
|
||||
|
||||
use std::thread::spawn;
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
//@ignore-windows: No libc on Windows
|
||||
//@ignore-apple: pthread_condattr_setclock is not supported on MacOS.
|
||||
//@ignore-target-windows: No libc on Windows
|
||||
//@ignore-target-apple: pthread_condattr_setclock is not supported on MacOS.
|
||||
//@compile-flags: -Zmiri-disable-isolation
|
||||
|
||||
#![feature(rustc_private)]
|
||||
|
@ -1,4 +1,4 @@
|
||||
//@only-linux
|
||||
//@only-target-linux
|
||||
//@compile-flags: -Zmiri-disable-isolation
|
||||
|
||||
#![feature(rustc_private)]
|
||||
|
@ -1,4 +1,4 @@
|
||||
//@ignore-windows: Concurrency on Windows is not supported yet.
|
||||
//@ignore-target-windows: Concurrency on Windows is not supported yet.
|
||||
//@compile-flags: -Zmiri-strict-provenance
|
||||
|
||||
use std::thread;
|
||||
|
@ -1,4 +1,4 @@
|
||||
//@ignore-windows: Concurrency on Windows is not supported yet.
|
||||
//@ignore-target-windows: Concurrency on Windows is not supported yet.
|
||||
use std::sync::atomic::{AtomicUsize, Ordering};
|
||||
use std::thread;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
//@ignore-windows: Concurrency on Windows is not supported yet.
|
||||
//@ignore-target-windows: Concurrency on Windows is not supported yet.
|
||||
// This specifically tests behavior *without* preemption.
|
||||
//@compile-flags: -Zmiri-preemption-rate=0
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
//@ignore-windows: Concurrency on Windows is not supported yet.
|
||||
//@ignore-target-windows: Concurrency on Windows is not supported yet.
|
||||
//@compile-flags: -Zmiri-disable-isolation -Zmiri-strict-provenance
|
||||
|
||||
use std::sync::{Arc, Barrier, Condvar, Mutex, Once, RwLock};
|
||||
|
@ -1,4 +1,4 @@
|
||||
//@ignore-windows: Concurrency on Windows is not supported yet.
|
||||
//@ignore-target-windows: Concurrency on Windows is not supported yet.
|
||||
// We are making scheduler assumptions here.
|
||||
//@compile-flags: -Zmiri-strict-provenance -Zmiri-preemption-rate=0
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
//@ignore-windows: Concurrency on Windows is not supported yet.
|
||||
//@ignore-target-windows: Concurrency on Windows is not supported yet.
|
||||
//@compile-flags: -Zmiri-strict-provenance
|
||||
|
||||
//! The main purpose of this test is to check that if we take a pointer to
|
||||
|
@ -1,4 +1,4 @@
|
||||
//@ignore-windows: Concurrency on Windows is not supported yet.
|
||||
//@ignore-target-windows: Concurrency on Windows is not supported yet.
|
||||
|
||||
use std::cell::RefCell;
|
||||
use std::thread;
|
||||
|
@ -1,4 +1,4 @@
|
||||
//@ignore-windows: No libc on Windows
|
||||
//@ignore-target-windows: No libc on Windows
|
||||
|
||||
#![feature(rustc_private)]
|
||||
extern crate libc;
|
||||
|
@ -1,4 +1,4 @@
|
||||
//@ignore-windows: File handling is not implemented yet
|
||||
//@ignore-target-windows: File handling is not implemented yet
|
||||
//@compile-flags: -Zmiri-disable-isolation
|
||||
|
||||
#![feature(rustc_private)]
|
||||
|
@ -1,4 +1,4 @@
|
||||
//@ignore-windows: File handling is not implemented yet
|
||||
//@ignore-target-windows: File handling is not implemented yet
|
||||
//@compile-flags: -Zmiri-isolation-error=warn-nobacktrace
|
||||
//@normalize-stderr-test: "(stat(x)?)" -> "$$STAT"
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
//@ignore-windows: No libc on Windows
|
||||
//@ignore-target-windows: No libc on Windows
|
||||
//@compile-flags: -Zmiri-disable-isolation
|
||||
|
||||
#![feature(rustc_private)]
|
||||
|
@ -1,4 +1,4 @@
|
||||
//@only-linux
|
||||
//@only-target-linux
|
||||
//@compile-flags: -Zmiri-disable-isolation
|
||||
#![feature(rustc_private)]
|
||||
extern crate libc;
|
||||
|
@ -1,4 +1,4 @@
|
||||
//@only-linux
|
||||
//@only-target-linux
|
||||
#![feature(rustc_private)]
|
||||
extern crate libc;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
//@ignore-windows: No libc on Windows
|
||||
//@ignore-target-windows: No libc on Windows
|
||||
|
||||
#![feature(rustc_private)]
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
// windows tls dtors go through libstd right now, thus this test
|
||||
// cannot pass. When windows tls dtors go through the special magic
|
||||
// windows linker section, we can run this test on windows again.
|
||||
//@ignore-windows
|
||||
//@ignore-target-windows
|
||||
|
||||
#[start]
|
||||
fn start(_: isize, _: *const *const u8) -> isize {
|
||||
|
@ -1,4 +1,4 @@
|
||||
//@ignore-windows: Concurrency on Windows is not supported yet.
|
||||
//@ignore-target-windows: Concurrency on Windows is not supported yet.
|
||||
// We are making scheduler assumptions here.
|
||||
//@compile-flags: -Zmiri-preemption-rate=0
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
//@ignore-windows: Concurrency on Windows is not supported yet.
|
||||
//@ignore-target-windows: Concurrency on Windows is not supported yet.
|
||||
// FIXME: disallow preemption to work around https://github.com/rust-lang/rust/issues/55005
|
||||
//@compile-flags: -Zmiri-ignore-leaks -Zmiri-preemption-rate=0
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
//@ignore-windows: Concurrency on Windows is not supported yet.
|
||||
//@ignore-target-windows: Concurrency on Windows is not supported yet.
|
||||
//@compile-flags: -Zmiri-ignore-leaks
|
||||
|
||||
// Tests operations not perfomable through C++'s atomic API
|
||||
|
@ -1,4 +1,4 @@
|
||||
//@ignore-windows: Concurrency on Windows is not supported yet.
|
||||
//@ignore-target-windows: Concurrency on Windows is not supported yet.
|
||||
//@compile-flags: -Zmiri-ignore-leaks
|
||||
|
||||
// Tests operations not perfomable through C++'s atomic API
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user