2 // ignore-wasm32-bare no env vars
7 for (k, v) in vars_os() {
8 // On Windows, the environment variable NUMBER_OF_PROCESSORS has special meaning.
9 // Unfortunately, you can get different answers, depending on whether you are
10 // enumerating all environment variables or querying a specific variable.
11 // This was causing this test to fail on machines with more than 64 processors.
12 if cfg!(target_os = "windows") && k == "NUMBER_OF_PROCESSORS" {
17 assert!(v2.as_ref().map(|s| &**s) == Some(&*v),
18 "bad vars->var transition: {:?} {:?} {:?}", k, v, v2);