diff --git a/test/data/h02.psd b/test/data/h02.psd new file mode 100644 index 00000000..bd84b40d Binary files /dev/null and b/test/data/h02.psd differ diff --git a/tests/bugfixes/github/test_issue_426.py b/tests/bugfixes/github/test_issue_426.py new file mode 100644 index 00000000..abce6b1b --- /dev/null +++ b/tests/bugfixes/github/test_issue_426.py @@ -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 +"""]