Skip to content

Commit cf4ceb6

Browse files
Enable test on windows
1 parent 65e694c commit cf4ceb6

File tree

1 file changed

+5
-5
lines changed
  • rustls-platform-verifier/src/tests/verification_mock

1 file changed

+5
-5
lines changed

rustls-platform-verifier/src/tests/verification_mock/mod.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ macro_rules! mock_root_test_cases {
4343
}
4444

4545
paste::paste!{
46-
#[cfg(all($target, not(windows), not(target_os = "android")))]
46+
#[cfg(all($target, not(target_os = "android")))]
4747
#[test]
4848
pub fn [<$name _extra>](){
4949
super::[<$name _extra>]()
@@ -60,7 +60,7 @@ macro_rules! mock_root_test_cases {
6060
$name,
6161

6262
paste::paste!{
63-
#[cfg(all($target, not(windows), not(target_os = "android")))]
63+
#[cfg(all($target, not(target_os = "android")))]
6464
[<$name _extra>]
6565
}
6666

@@ -77,7 +77,7 @@ macro_rules! mock_root_test_cases {
7777
}
7878

7979
paste::paste!{
80-
#[cfg(all($target, not(windows), not(target_os = "android")))]
80+
#[cfg(all($target, not(target_os = "android")))]
8181
pub(super) fn [<$name _extra>]() {
8282
test_with_mock_root(&$test_case, Roots::ExtraAndPlatform);
8383
}
@@ -336,7 +336,7 @@ fn test_with_mock_root<E: std::error::Error + PartialEq + 'static>(
336336

337337
let verifier = match root_src {
338338
Roots::OnlyExtra => Verifier::new_with_fake_root(ROOT1), // TODO: time
339-
#[cfg(all(unix, not(target_os = "android")))]
339+
#[cfg(not(target_os = "android"))]
340340
Roots::ExtraAndPlatform => Verifier::new_with_extra_roots(vec![ROOT1.into()]),
341341
};
342342
let mut chain = test_case
@@ -379,6 +379,6 @@ enum Roots {
379379
/// Test with loading the extra roots and the platform trust store.
380380
///
381381
/// Right now, not all platforms are supported.
382-
#[cfg(all(unix, not(target_os = "android")))]
382+
#[cfg(not(target_os = "android"))]
383383
ExtraAndPlatform,
384384
}

0 commit comments

Comments
 (0)