tests: cleanup tests/ui/std/thread-sleep-ms.rs
- Use `needs-threads` instead of `ignore-sgx`. - Remove unnecessary import and `#![allow(unused_import)]`.
This commit is contained in:
parent
4b743a7a63
commit
e00e10c943
1 changed files with 4 additions and 7 deletions
|
@ -1,12 +1,9 @@
|
||||||
//@ run-pass
|
//@ run-pass
|
||||||
//@ ignore-sgx not supported
|
//@ needs-threads
|
||||||
//@ ignore-emscripten
|
//@ ignore-emscripten (FIXME: test hangs on emscripten)
|
||||||
// FIXME: test hangs on emscripten
|
|
||||||
#![allow(deprecated)]
|
|
||||||
#![allow(unused_imports)]
|
|
||||||
|
|
||||||
use std::thread;
|
#![allow(deprecated)]
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
thread::sleep_ms(250);
|
std::thread::sleep_ms(250);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue