Skip to content

Commit 8af12eb

Browse files
committed
Add test for impl of available_parallelism()
1 parent 9b735a7 commit 8af12eb

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// run-pass
2+
// this is an ignore list on purpose so that new platforms don't miss it:
3+
//ignore-vxworks
4+
//ignore-redox
5+
//ignore-l4re
6+
7+
// check that std::thread::available_parallelism returns a valid value
8+
9+
fn main() {
10+
std::thread::available_parallelism().expect(
11+
"should return a value on all platforms that are not ignored");
12+
}

0 commit comments

Comments
 (0)