Regression test for https://github.com/Exiv2/exiv2/issues/1530
This commit is contained in:
parent
0a91b56616
commit
c92ac88cb0
BIN
test/data/issue_1530_poc.crw
Normal file
BIN
test/data/issue_1530_poc.crw
Normal file
Binary file not shown.
BIN
test/data/issue_1530_poc.exv
Normal file
BIN
test/data/issue_1530_poc.exv
Normal file
Binary file not shown.
20
tests/bugfixes/github/test_issue_1530.py
Normal file
20
tests/bugfixes/github/test_issue_1530.py
Normal file
@ -0,0 +1,20 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from system_tests import CaseMeta, path
|
||||
|
||||
|
||||
class MrmImageLargeAllocation(metaclass=CaseMeta):
|
||||
"""
|
||||
Regression test for the bug described in:
|
||||
https://github.com/Exiv2/exiv2/pull/943
|
||||
"""
|
||||
url = "https://github.com/Exiv2/exiv2/issues/1530"
|
||||
|
||||
filename1 = path("$data_path/issue_1530_poc.crw")
|
||||
filename2 = path("$data_path/issue_1530_poc.exv")
|
||||
commands = ["$exiv2 in $filename1 $filename2"]
|
||||
stdout = [""]
|
||||
stderr = [
|
||||
"""$filename1: Could not write metadata to file: corrupted image metadata
|
||||
"""]
|
||||
retval = [1]
|
||||
Loading…
Reference in New Issue
Block a user