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
|
||||
//@ ignore-sgx not supported
|
||||
//@ ignore-emscripten
|
||||
// FIXME: test hangs on emscripten
|
||||
#![allow(deprecated)]
|
||||
#![allow(unused_imports)]
|
||||
//@ needs-threads
|
||||
//@ ignore-emscripten (FIXME: test hangs on emscripten)
|
||||
|
||||
use std::thread;
|
||||
#![allow(deprecated)]
|
||||
|
||||
fn main() {
|
||||
thread::sleep_ms(250);
|
||||
std::thread::sleep_ms(250);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue