Add integration test to reproduce the issue

This commit is contained in:
Luis Díaz Más 2018-09-02 14:34:48 +02:00
parent dce05ac488
commit a6a1c31140
3 changed files with 23 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 176 B

View File

@ -0,0 +1,23 @@
# -*- coding: utf-8 -*-
import system_tests
class PngReadRawProfile(metaclass=system_tests.CaseMeta):
url = "https://github.com/Exiv2/exiv2/issues/428"
filenames = [
system_tests.path("$data_path/issue_428_poc1.png"),
system_tests.path("$data_path/issue_428_poc2.png")
]
commands = ["$exiv2 " + fname for fname in filenames]
stdout = [""] * 2
stderr = [
"""$exiv2_exception_message """ + fname + """:
$kerFailedToReadImageData
"""
for fname in filenames
]
retval = [1] * 2