From b6bc4262c45fbfca238e8ca3178a5cc0697fed7c Mon Sep 17 00:00:00 2001 From: Luis Diaz Mas Date: Sun, 4 Nov 2018 22:48:22 +0100 Subject: [PATCH] Add regression test for #426 --- test/data/h02.psd | Bin 0 -> 266 bytes tests/bugfixes/github/test_issue_426.py | 14 ++++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 test/data/h02.psd create mode 100644 tests/bugfixes/github/test_issue_426.py diff --git a/test/data/h02.psd b/test/data/h02.psd new file mode 100644 index 0000000000000000000000000000000000000000..bd84b40d7145822134703d52a9cdf7db97ee67ea GIT binary patch literal 266 zcmcC;3J7LkWB{W7|5=$B7?PhefH)isjzF5>7X#}r3nx!s79jio|NoywK!Pw(31cwS z!&wXr4oGYeQvj6@G6^4GWcdDHjN$)BkRuov{^_6rkQhjN3rLnhhLIUWft3FLf98zO z{~2Ha(JROZakYgj1A`Fb|Nr3{nvA!8pTBe9!+XnijR{FWeRhnjK=(2-903~O003lC BEw%sv literal 0 HcmV?d00001 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 +"""]