| 1 | Descriptionscip-debian debian rust-file-diff 1.0.0-2 rust-file-diff/patches/`fix_tests.patch`#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 | Forwardedscip-debian debian rust-file-diff 1.0.0-2 rust-file-diff/patches/`fix_tests.patch`#Forwarded.: not-needed |
| 4 | Bug-Debianscip-debian debian rust-file-diff 1.0.0-2 rust-file-diff/patches/`fix_tests.patch`#Bug-Debian.: http://bugs.debian.org/990382scip-debian-bts debian-bts . . 990382: |
| 5 | |
| 6 | --- a/src/lib.rsscip-debian debian rust-file-diff 1.0.0-2 rust-file-diff/upstream/`src/lib.rs`: |
| 7 | +++ b/src/lib.rsscip-debian debian rust-file-diff 1.0.0-2 rust-file-diff/upstream/`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 |