Add a second test for better code coverage.

This commit is contained in:
Kevin Backhouse 2019-07-06 16:09:18 +01:00
parent cb7dc5a528
commit be875ce50f
3 changed files with 10 additions and 6 deletions

Binary file not shown.

View File

@ -3,19 +3,23 @@
from system_tests import CaseMeta, path
class OutOfBoundsReadInIptcParserDecode(metaclass=CaseMeta):
class MrmImageLargeAllocation(metaclass=CaseMeta):
"""
Regression test for the bug described in:
https://github.com/Exiv2/exiv2/pull/943
"""
url = "https://github.com/Exiv2/exiv2/pull/943"
filename = path("$data_path/issue_943_poc.mrm")
commands = ["$exiv2 $filename"]
stdout = [""]
filename1 = path("$data_path/issue_943_poc1.mrm")
filename2 = path("$data_path/issue_943_poc2.mrm")
commands = ["$exiv2 $filename1", "$exiv2 $filename2"]
stdout = ["",""]
stderr = [
"""Exiv2 exception in print action for file $filename:
"""Exiv2 exception in print action for file $filename1:
Failed to read image data
""",
"""Exiv2 exception in print action for file $filename2:
Failed to read image data
"""
]
retval = [1]
retval = [1,1]