From 005fbafb301cce2fcc94861703bf8439d0bc2ef1 Mon Sep 17 00:00:00 2001 From: Jordan Petridis Date: Thu, 25 Aug 2022 00:47:01 +0300 Subject: [PATCH] threadshare: disable tests that can't work on windows These depend on socket properties that are not available on windows --- generic/threadshare/tests/pipeline.rs | 2 ++ generic/threadshare/tests/udpsrc.rs | 1 + 2 files changed, 3 insertions(+) diff --git a/generic/threadshare/tests/pipeline.rs b/generic/threadshare/tests/pipeline.rs index 46470354..fa60755d 100644 --- a/generic/threadshare/tests/pipeline.rs +++ b/generic/threadshare/tests/pipeline.rs @@ -43,6 +43,7 @@ fn init() { } #[test] +#[cfg(not(windows))] fn multiple_contexts_queue() { use std::net; use std::net::{IpAddr, Ipv4Addr, SocketAddr}; @@ -170,6 +171,7 @@ fn multiple_contexts_queue() { } #[test] +#[cfg(not(windows))] fn multiple_contexts_proxy() { use std::net; use std::net::{IpAddr, Ipv4Addr, SocketAddr}; diff --git a/generic/threadshare/tests/udpsrc.rs b/generic/threadshare/tests/udpsrc.rs index 03b15ee5..91a18b0b 100644 --- a/generic/threadshare/tests/udpsrc.rs +++ b/generic/threadshare/tests/udpsrc.rs @@ -32,6 +32,7 @@ fn init() { } #[test] +#[cfg(not(windows))] fn test_push() { init();