Merge pull request #2587 from Exiv2/test_2542

Add test case (complements #2567)
This commit is contained in:
Miloš Komarčević 2023-04-17 16:00:01 +02:00 committed by GitHub
commit a5d51666ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 203 additions and 0 deletions

BIN
test/data/poc_2542.exv Normal file

Binary file not shown.

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,15 @@
from system_tests import CaseMeta, path
class OMSystemMakerNoteAlias(metaclass=CaseMeta):
"""
Regression test for the bug described in:
https://github.com/Exiv2/exiv2/issues/2542
"""
url = "https://github.com/Exiv2/exiv2/issues/2542"
filename = path("$data_path/poc_2542.exv")
commands = ["$exiv2 -q -K Exif.Olympus2.CameraID $filename"]
stdout = ["""Exif.Olympus2.CameraID Undefined 32 OLYMPUS DIGITAL CAMERA
"""]
stderr = [""]
retval = [0]