Allow more ui tests for SGX

This commit is contained in:
Mohsen Zohrevandi 2020-06-12 13:41:46 -07:00
parent d7dc64bdfe
commit c5d1fcd230
5 changed files with 1 additions and 5 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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();
}
}
}

View File

@ -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;

View File

@ -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};