diff options
| author | Mohsen Zohrevandi <mohsen.zohrevandi@fortanix.com> | 2020-06-12 13:41:46 -0700 |
|---|---|---|
| committer | Mohsen Zohrevandi <mohsen.zohrevandi@fortanix.com> | 2020-06-12 13:41:46 -0700 |
| commit | c5d1fcd2309b6903fed82aba6e0fdc2fa85bc874 (patch) | |
| tree | e8359aa88e6bcfe181db63eb189cd77a7357bd13 /src | |
| parent | d7dc64bdfea4fbf8974774800ab51e04eaa4f082 (diff) | |
| download | rust-c5d1fcd2309b6903fed82aba6e0fdc2fa85bc874.tar.gz rust-c5d1fcd2309b6903fed82aba6e0fdc2fa85bc874.zip | |
Allow more ui tests for SGX
Diffstat (limited to 'src')
| -rw-r--r-- | src/test/ui/issues/issue-59020.rs | 1 | ||||
| -rw-r--r-- | src/test/ui/issues/issue-9396.rs | 1 | ||||
| -rw-r--r-- | src/test/ui/mpsc_stress.rs | 2 | ||||
| -rw-r--r-- | src/test/ui/sleep.rs | 1 | ||||
| -rw-r--r-- | src/test/ui/tcp-stress.rs | 1 |
5 files changed, 1 insertions, 5 deletions
diff --git a/src/test/ui/issues/issue-59020.rs b/src/test/ui/issues/issue-59020.rs index e7544934da0..a2b11764a2f 100644 --- a/src/test/ui/issues/issue-59020.rs +++ b/src/test/ui/issues/issue-59020.rs @@ -1,7 +1,6 @@ // edition:2018 // run-pass // ignore-emscripten no threads support -// ignore-sgx no thread sleep support use std::thread; use std::time::Duration; diff --git a/src/test/ui/issues/issue-9396.rs b/src/test/ui/issues/issue-9396.rs index 27b5185377d..3e7e9a51cdd 100644 --- a/src/test/ui/issues/issue-9396.rs +++ b/src/test/ui/issues/issue-9396.rs @@ -2,7 +2,6 @@ #![allow(unused_must_use)] #![allow(deprecated)] // ignore-emscripten no threads support -// ignore-sgx no thread sleep support use std::sync::mpsc::{TryRecvError, channel}; use std::thread; diff --git a/src/test/ui/mpsc_stress.rs b/src/test/ui/mpsc_stress.rs index bce5fdcd119..81c000839bd 100644 --- a/src/test/ui/mpsc_stress.rs +++ b/src/test/ui/mpsc_stress.rs @@ -1,7 +1,6 @@ // run-pass // compile-flags:--test // ignore-emscripten -// ignore-sgx no thread sleep support use std::sync::mpsc::channel; use std::sync::mpsc::TryRecvError; @@ -37,6 +36,7 @@ impl Barrier { fn wait(self) { self.shared.fetch_add(1, Ordering::SeqCst); while self.shared.load(Ordering::SeqCst) != self.count { + thread::yield_now(); } } } diff --git a/src/test/ui/sleep.rs b/src/test/ui/sleep.rs index 757578b8475..3b3a4a4f325 100644 --- a/src/test/ui/sleep.rs +++ b/src/test/ui/sleep.rs @@ -1,6 +1,5 @@ // run-pass // ignore-emscripten no threads support -// ignore-sgx no thread sleep support use std::thread::{self, sleep}; use std::time::Duration; diff --git a/src/test/ui/tcp-stress.rs b/src/test/ui/tcp-stress.rs index 1f1948fa8fa..08b47dc5318 100644 --- a/src/test/ui/tcp-stress.rs +++ b/src/test/ui/tcp-stress.rs @@ -4,7 +4,6 @@ // ignore-emscripten no threads or sockets support // ignore-netbsd system ulimit (Too many open files) // ignore-openbsd system ulimit (Too many open files) -// ignore-sgx no thread sleep support use std::io::prelude::*; use std::net::{TcpListener, TcpStream}; |
