1
Fork 0

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:
许杰友 Jieyou Xu (Joe) 2025-01-23 16:56:11 +08:00
parent 4b743a7a63
commit e00e10c943

View file

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