Allow more ui tests for SGX
This commit is contained in:
parent
d7dc64bdfe
commit
c5d1fcd230
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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};
|
||||
|
|
Loading…
Reference in New Issue