Add regression test for #960
This commit is contained in:
parent
82b9e5e81c
commit
a048325e18
BIN
test/data/issue_960.poc.webp
Normal file
BIN
test/data/issue_960.poc.webp
Normal file
Binary file not shown.
22
tests/bugfixes/github/test_issue_960.py
Normal file
22
tests/bugfixes/github/test_issue_960.py
Normal file
@ -0,0 +1,22 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from system_tests import CaseMeta, path
|
||||
|
||||
|
||||
class WebPImageGetHeaderOffset(metaclass=CaseMeta):
|
||||
"""
|
||||
Regression test for the bug described in:
|
||||
https://github.com/Exiv2/exiv2/pull/960
|
||||
"""
|
||||
url = "https://github.com/Exiv2/exiv2/pull/960"
|
||||
|
||||
filename1 = path("$data_path/issue_960.poc.webp")
|
||||
commands = ["$exiv2 $filename1"]
|
||||
stdout = [""]
|
||||
stderr = [
|
||||
"""Warning: Failed to decode Exif metadata.
|
||||
Exiv2 exception in print action for file $filename1:
|
||||
$kerCorruptedMetadata
|
||||
"""
|
||||
]
|
||||
retval = [1]
|
||||
Loading…
Reference in New Issue
Block a user