Skip to content

Commit

Permalink
Add test for impl of available_parallelism()
Browse files Browse the repository at this point in the history
  • Loading branch information
flba-eb committed Nov 7, 2022
1 parent 9b735a7 commit 8af12eb
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/test/ui/thread-available_parallelism.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// run-pass
// this is an ignore list on purpose so that new platforms don't miss it:
//ignore-vxworks
//ignore-redox
//ignore-l4re

// check that std::thread::available_parallelism returns a valid value

fn main() {
std::thread::available_parallelism().expect(
"should return a value on all platforms that are not ignored");
}

0 comments on commit 8af12eb

Please sign in to comment.