Fix tests so that they remove warning properly
This commit is contained in:
1 parent
dbf532b0a9
commit
a2f7aa9500
1 file changed
+3
-3
+3
-3
@@ -21,7 +21,7 @@ fn decode_tiff(file: File) -> TiffResult<()> {
|
|||||||
#[test]
|
#[test]
|
||||||
fn oor_panic() {
|
fn oor_panic() {
|
||||||
test_directory("./tests/fuzz_images/oor_panic", |file| {
|
test_directory("./tests/fuzz_images/oor_panic", |file| {
|
||||||
decode_tiff(file).ok();
|
let _ = decode_tiff(file);
|
||||||
true
|
true
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -36,7 +36,7 @@ fn oom_crash() {
|
|||||||
#[test]
|
#[test]
|
||||||
fn inf_loop() {
|
fn inf_loop() {
|
||||||
test_directory("./tests/fuzz_images/inf_loop", |file| {
|
test_directory("./tests/fuzz_images/inf_loop", |file| {
|
||||||
decode_tiff(file).ok();
|
let _ = decode_tiff(file);
|
||||||
true
|
true
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -45,7 +45,7 @@ fn inf_loop() {
|
|||||||
#[test]
|
#[test]
|
||||||
fn divide_by_zero() {
|
fn divide_by_zero() {
|
||||||
test_directory("./tests/fuzz_images/divide_by_zero", |file| {
|
test_directory("./tests/fuzz_images/divide_by_zero", |file| {
|
||||||
decode_tiff(file).ok();
|
let _ = decode_tiff(file);
|
||||||
true
|
true
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user