Add regression test for #426
This commit is contained in:
parent
244f00bf3a
commit
b6bc4262c4
BIN
test/data/h02.psd
Normal file
BIN
test/data/h02.psd
Normal file
Binary file not shown.
14
tests/bugfixes/github/test_issue_426.py
Normal file
14
tests/bugfixes/github/test_issue_426.py
Normal file
@ -0,0 +1,14 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import system_tests
|
||||
|
||||
|
||||
class DetectsWrongLengthOfImageResourceInPSDFile(metaclass=system_tests.CaseMeta):
|
||||
url = "https://github.com/Exiv2/exiv2/issues/426"
|
||||
|
||||
filename = system_tests.path("$data_path/h02.psd")
|
||||
commands = ["$exiv2 " + filename]
|
||||
retval = [1]
|
||||
stderr = ["""$exiv2_exception_message """ + filename + """:
|
||||
$kerCorruptedMetadata
|
||||
"""]
|
||||
Loading…
Reference in New Issue
Block a user