Skip to content

Commit 2b48b11

Browse files
committed
tests: cleanup tests/ui/std/thread-sleep-ms.rs
- Use `needs-threads` instead of `ignore-sgx`. - Remove unnecessary import and `#![allow(unused_import)]`.
1 parent 70aa4cc commit 2b48b11

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

tests/ui/std/thread-sleep-ms.rs

+4-7
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
//@ run-pass
2-
//@ ignore-sgx not supported
3-
//@ ignore-emscripten
4-
// FIXME: test hangs on emscripten
5-
#![allow(deprecated)]
6-
#![allow(unused_imports)]
2+
//@ needs-threads
3+
//@ ignore-emscripten (FIXME: test hangs on emscripten)
74

8-
use std::thread;
5+
#![allow(deprecated)]
96

107
fn main() {
11-
thread::sleep_ms(250);
8+
std::thread::sleep_ms(250);
129
}

0 commit comments

Comments
 (0)