Regression test for https://github.com/Exiv2/exiv2/issues/1763
This commit is contained in:
parent
c7757d7c08
commit
f8ae9297c7
BIN
test/data/issue_1763_poc.exv
Executable file
BIN
test/data/issue_1763_poc.exv
Executable file
Binary file not shown.
20
tests/bugfixes/github/test_issue_1763.py
Normal file
20
tests/bugfixes/github/test_issue_1763.py
Normal file
@ -0,0 +1,20 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from system_tests import CaseMeta, path
|
||||
|
||||
class CanonPrintCsLensTypeByMetadataNullIteratorDeref(metaclass=CaseMeta):
|
||||
"""
|
||||
Regression test for the bug described in:
|
||||
https://github.com/Exiv2/exiv2/issues/1763
|
||||
"""
|
||||
url = "https://github.com/Exiv2/exiv2/issues/1763"
|
||||
|
||||
filename = path("$data_path/issue_1763_poc.exv")
|
||||
commands = ["$exiv2 -Pt $filename"]
|
||||
|
||||
stderr = [""]
|
||||
retval = [0]
|
||||
|
||||
def compare_stdout(self, i, command, got_stdout, expected_stdout):
|
||||
# Check that it printed "Bad value" for the date.
|
||||
self.assertIn("Unknown Lens (254)", got_stdout)
|
||||
Loading…
Reference in New Issue
Block a user