File: fix-tests.patch

package info (click to toggle)
rust-zstd 0.13.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 340 kB
  • sloc: makefile: 2
file content (23 lines) | stat: -rw-r--r-- 698 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
Description: Disable and fix tests without proper fixtures
Last-Update: 2022-09-02
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/src/stream/tests.rs
+++ b/src/stream/tests.rs
@@ -174,3 +174,4 @@
 
-#[test]
+//#[test]
+#[cfg(has_example_txt_zst)]
 fn test_cli_compatibility() {
@@ -190,3 +191,3 @@
 #[cfg(feature = "legacy")]
-#[test]
+//#[test]
 fn test_legacy() {
@@ -235,3 +236,4 @@
     // Where could I find some long text?...
-    let data = include_bytes!("../../zstd-safe/zstd-sys/src/bindings_zstd.rs");
+    // Debian: originally it's the prebuilt bindings, but we excluded it.
+    let data = include_bytes!("raw.rs");
     // Test a few compression levels.