Add integration test to reproduce the issue
This commit is contained in:
parent
dce05ac488
commit
a6a1c31140
BIN
test/data/issue_428_poc1.png
Normal file
BIN
test/data/issue_428_poc1.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.5 KiB |
BIN
test/data/issue_428_poc2.png
Normal file
BIN
test/data/issue_428_poc2.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 176 B |
23
tests/bugfixes/github/test_issue_428.py
Normal file
23
tests/bugfixes/github/test_issue_428.py
Normal 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
|
||||
Loading…
Reference in New Issue
Block a user