forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test for impl of
available_parallelism()
- Loading branch information
Showing
1 changed file
with
12 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"); | ||
} |