image - disable more tests that require missing test data.
Peter Michael Green
2 years ago
20 | 20 | =================================================================== |
21 | 21 | --- image.orig/src/codecs/png.rs |
22 | 22 | +++ image/src/codecs/png.rs |
23 | @@ -648,7 +648,7 @@ mod tests { | |
23 | @@ -652,7 +652,7 @@ mod tests { | |
24 | 24 | use std::io::Read; |
25 | 25 | use super::*; |
26 | 26 | |
29 | 29 | fn ensure_no_decoder_off_by_one() { |
30 | 30 | let dec = PngDecoder::new(std::fs::File::open("tests/images/png/bugfixes/debug_triangle_corners_widescreen.png").unwrap()) |
31 | 31 | .expect("Unable to read PNG file (does it exist?)"); |
32 | @@ -669,9 +669,9 @@ mod tests { | |
32 | @@ -673,9 +673,9 @@ mod tests { | |
33 | 33 | .collect::<Vec<u8>>(); |
34 | 34 | |
35 | 35 | assert_eq![6_000_000, correct_bytes.len()]; |
41 | 41 | fn underlying_error() { |
42 | 42 | use std::error::Error; |
43 | 43 | |
44 | @@ -684,5 +684,5 @@ mod tests { | |
44 | @@ -688,5 +688,5 @@ mod tests { | |
45 | 45 | .unwrap() |
46 | 46 | .downcast_ref::<png::DecodingError>() |
47 | 47 | .expect("Caused by a png error"); |
72 | 72 | =================================================================== |
73 | 73 | --- image.orig/src/imageops/sample.rs |
74 | 74 | +++ image/src/imageops/sample.rs |
75 | @@ -887,7 +887,7 @@ mod tests { | |
75 | @@ -837,7 +837,7 @@ mod tests { | |
76 | #[cfg(feature = "benchmarks")] | |
77 | use test; | |
78 | ||
79 | - #[bench] | |
80 | + /*#[bench] | |
81 | #[cfg(all(feature = "benchmarks", feature = "png"))] | |
82 | fn bench_resize(b: &mut test::Bencher) { | |
83 | use std::path::Path; | |
84 | @@ -846,7 +846,7 @@ mod tests { | |
85 | test::black_box(resize(&img, 200, 200, FilterType::Nearest)); | |
86 | }); | |
87 | b.bytes = 800 * 800 * 3 + 200 * 200 * 3; | |
88 | - } | |
89 | + }*/ | |
90 | ||
91 | #[test] | |
92 | fn test_issue_186() { | |
93 | @@ -854,7 +854,7 @@ mod tests { | |
94 | let _ = resize(&img, 50, 50, FilterType::Lanczos3); | |
95 | } | |
96 | ||
97 | - #[bench] | |
98 | + /*#[bench] | |
99 | #[cfg(all(feature = "benchmarks", feature = "tiff"))] | |
100 | fn bench_thumbnail(b: &mut test::Bencher) { | |
101 | let path = concat!(env!("CARGO_MANIFEST_DIR"), "/tests/images/tiff/testsuite/mandrill.tiff"); | |
102 | @@ -885,9 +885,9 @@ mod tests { | |
103 | test::black_box(image.thumbnail(256, 256)); | |
104 | }); | |
76 | 105 | b.bytes = 193 * 193 * 4 + 256 * 256 * 4; |
77 | } | |
106 | - } | |
107 | + }*/ | |
78 | 108 | |
79 | 109 | - #[test] |
80 | 110 | + /*#[test] |