File: 1002_feature_fencing.patch

package info (click to toggle)
rust-hyper-rustls 0.27.6-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 312 kB
  • sloc: sh: 48; makefile: 2
file content (25 lines) | stat: -rw-r--r-- 882 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Description: add feature fences for tests
Author: Peter Michael Green <plugwash@debian.org>
Last-Update: 2025-03-21
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/src/connector/builder.rs
+++ b/src/connector/builder.rs
@@ -394,7 +394,7 @@
     }
 
     #[test]
-    #[cfg(feature = "http1")]
+    #[cfg(all(feature = "http1", feature = "ring"))]
     #[should_panic(expected = "ALPN protocols should not be pre-defined")]
     fn test_reject_predefined_alpn() {
         ensure_global_state();
@@ -455,7 +455,7 @@
     }
 
     #[test]
-    #[cfg(all(not(feature = "http1"), feature = "http2"))]
+    #[cfg(all(not(feature = "http1"), feature = "http2", any(feature = "native-tokio", feature = "tokio-runtime")))]
     fn test_alpn_http2() {
         let roots = rustls::RootCertStore::empty();
         let tls_config = rustls::ClientConfig::builder()