Debian Codegraph @

debian/patches/fix_tests.patch

raw symbols SCIP
1 Description: Skip tests using upstream provided x86_64 binaries without source code.
2 These binaries are non DFSG compatible and these tests fails on non x86_64 architectures.
3 Forwarded: not-needed
4 Bug-Debian: http://bugs.debian.org/990382
5
6 --- a/src/lib.rs
7 +++ b/src/lib.rs
8 @@ -85,23 +85,29 @@
9 mod tests {
10 const LIB_RS: &'static str = "./src/lib.rs";
11 const CARGO_FILE: &'static str = "./Cargo.toml";
12 +/*
13 const RUST_BIN_FILE: &'static str = "./testdata/rust_hello";
14 const C_BIN_FILE: &'static str = "./testdata/c_hello";
15 const C_BIN_FILE_COPY: &'static str = "./testdata/c_hello_copy";
16 +*/
17
18 #[test]
19 fn diff_the_same_text_file() { assert!(super::diff(LIB_RS, LIB_RS)); }
20
21 +/*
22 #[test]
23 fn diff_the_same_binary_file() { assert!(super::diff(RUST_BIN_FILE, RUST_BIN_FILE)); }
24
25 #[test]
26 fn diff_identical_binary_files() { assert!(super::diff(C_BIN_FILE, C_BIN_FILE_COPY)); }
27 +*/
28
29 #[test]
30 fn diff_different_text_files() { assert!( !super::diff(LIB_RS, CARGO_FILE)); }
31
32 +/*
33 #[test]
34 fn diff_different_binary_files() { assert!( !super::diff(RUST_BIN_FILE, C_BIN_FILE)); }
35 +*/
36 }
37